Skip to main content

Posts

Validate Current user Belog to Member of the Groups

 public bool VaildateUserBelogtoGroups(string[] groupNames)         {             bool rval = false;             try             {                 foreach (string grpName in groupNames)                 {                     SPGroup ogrp = SPContext.Current.Web.SiteGroups.GetByName(grpName);                     if (ogrp.ContainsCurrentUser && rval == false)                         rval = true;                 }             }             catch (Exception ex)             {     ...

Show Sharepoint Ribbon on page Load

<script> setTimeout(function() { var elem = document.getElementById("MSOZoneCell_WebPartWPQ2"); if(elem != null) { var dummyevent = new Array(); dummyevent["target"] = elem; dummyevent["srcElement"] = elem; WpClick(dummyevent); } }, 100); </script> The above script will invoke the ribbon by default in IE( for the specific webpart), incase if you added multiple webparts.

Task List Not Showing in Add an App

Today i found that one of the Sub site is missing the Task List in Add an APP. i am searching the root cause nothing i found Then i decided to search on Site Features, there i found Team Collaboration Lists - This Feature i Deactivated and Activated then its Showing Now... :) Hope this may helps someone.

Filter and Paging For SharePoint Library

Create Calculated Column "FN" Formula =UPPER(LEFT([Title])) Edit  all items view page -> add the following script in Script editor. <script type="text/javascript">     function qs(paramName) {         var args = document.location.search.substring(1).split("&");         for (j = 0; j < args.length; j++) {             nameValues = args[j].split("=");             if (nameValues[0] == paramName) return nameValues[1];         }         return null;     }     var filterField = "FN";     var filterValuesDelimiter = " - ";     var filterValues = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X...

SharePoint 2013 Tab Pages

Tab-Pages : http://www.ashokraja.me/post/Easy-method-to-convert-a-SharePoint-2013-Content-Editor-WebPart-into-Tab-Pages.aspx http://www.ashokraja.me/post/Tab-Pages-WebPart-in-SharePoint-2013-based-on-jQuery-Easy-Tabs-without-combining-multiple-web-parts.aspx

CSS Effects & Animation

Gradient Effect using CSS https://testdrive-archive.azurewebsites.net/Graphics/CSSGradientBackgroundMaker/Default.html Image Roll Over Effect http://aceinfowayindia.com/blog/ace-tuts/css-rollover.html CSS Animations http://www.the-art-of-web.com/css/css-animation/ CSS: border-radius http://www.the-art-of-web.com/css/border-radius/