Objective: implement custom sort functionality for list items make order number (rank) visible on the list First, let’s create custom action for reordering items and make hidden field Order visible and sortable on default view with PowerShell. [void] [System.reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") | out-null # Add "Change item Order" button at target List ...

Read More

Just “quick and dirty” public static void ChangePermissions(SPSecurableObject subject, SPPrincipal principal, SPRoleType roleType) {     SPRoleDefinition roleDefinition = null;     SPRoleAssignment roleAssignment = subject.RoleAssignments.GetAssignmentByPrincipal(principal);     if (roleAssignment != null && subject != null)     {         switch (subject.GetType().Name)         {             case "SPList":                 if (!((SPList)subject).HasUniqueRoleAssignments)                     ((SPList)subject).BreakRoleInheritance(true,false);                 roleDefinition ...

Read More

Before you begin, please check if your SharePoint farm SQL servers are using Dynamic memory on ESX or Hyper-V. If yes – Turn it OFF! And check if it helped. Launch AppFabric PowerShell console and execute: Use-CacheCluster Get-CacheHost Check if Cluster is ‘UP’, If not then: Start-CacheHost –ComputerName [yourServerName] –CachePort 22233 ...

Read More