Wednesday, September 28, 2011

SharePoint 2010 CSS classes

Element

CSS Class(es)

Notes

<body>

v4master

Applies CSS styles in corev4.css to the page.

Ribbon container

s4-pr

Makes the Ribbon container the full width of the page row.

 

s4-ribbonrowhidetitle

Used to show or hide the ribbon title area when the ribbon is opened or closed.

 

ms-cui-ribbon

Defines the main ribbon CSS class.

 

ms-cui-ribbonTopBars

Defines the elements above the ribbon body, from the top of the page up to and including the ribbon tab titles.

Site Actions menu

ms-siteactionsmenu

Sets styles for the Site Actions menu as a whole.

 

ms-siteactionsmenuinner

Sets styles for the inner Site Actions menu.

 

ms-menu-a

Sets the margin-right property on the top menu.

Breadcrumb menu

s4-breadcrumb-menu

Sets styles for the Breadcrumb menu as a whole.

 

s4-breadcrumb-anchor

Sets styles on hover over the Breadcrumb menu.

Breadcrumb menu header

s4-breadcrumb-top

Sets styles on the Breadcrumb menu top area when the drop-down tree is open.

 

s4-breadcrumb-header

Sets styles on the breadcrumb folder icon when the breadcrumb tree drop-down menu is selected.

Breadcrumb menu items

s4-breadcrumb

Sets breadcrumb item styles.

 

s4-breadcrumbRootNode

Sets styles on the breadcrumb Team Site root tree element.

 

s4-breadcrumbCurrentNode

Sets styles on the breadcrumb Home tree element.

Edit tab

ms-qatbutton

Sets styles on the Edit tab.

Browse tab

ms-cui-tts

Sets styles for the container for the tab title.

 

ms-cui-tt

Sets styles for the tab title.

 

ms-browseTab

Sets styles specific to the Browse tab

 

ms-cui-tt-s

Sets styles for a selected tab title.

 

ms-cui-tt-a

Sets styles for the Ribbon tab title anchor (the link element that makes the table title clickable).

 

ms-cui-tt-span

Sets styles for tab title span.

Page Tab

ms-cui-tt

Sets styles for the tab title.

 

ms-cui-tt-a

Sets styles for the Ribbon tab title anchor (the link element that makes the table title clickable).

 

ms-cui-tt-span

Sets styles for tab title span.

User menu

s4-trc-container-menu

Sets styles for the top right corner container menu.

 

ms-SPLink

Sets styles applied to a menu item.

 

ms-welcomeMenu

Sets the margin-right property on a drop-down menu item.

 

ms-menu-a

Sets the margin-right property on the top menu.

Title row

s4-pr

Makes the Title row the full width of the page row.

 

s4-title

Sets styles on page title elements.

 

s4-lp

Sets styles for elements on the left part of the page.

 

s4-titlelogo

Sets margin and alignment on the title logo image.

 

s4-titletext

Sets styles on all text to the right of the page logo graphic.

Search area

s4-search

Sets padding values on the Search control in the secondary menu.

 

s4-rp

Sets styles for elements on the right part of the page.

QuickLaunch menu items

menu-item

Sets styles for the Home button located under the Site logo.

 

menu-item-text

Sets styles on the text of the Home button.

Recycle Bin link

s4-rcycl

Sets styles specific to the Recycle Bin link element.

 

ms-splinkbutton-text

Sets styles on the link element.

All Site Content link

s4-specialNavIcon

Sets styles specific to the All Site Content link element.

 

ms-splinkbutton-text

Sets styles on the link element.

Shared Documents link

ms-WPHeaderTd

Sets styles on the header section in the Web Part.

 

ms-standardheader

Sets standard header styles.

 

ms-WPTitle

Sets styles on the Web Part title.

Web part menu

ms-WPHeaderTdMenu

Sets styles on the Web Part menu.

 

ms-WPHeaderMenuImg

Sets styles on the Web Part menu image.

Selection checkbox

ms-WPHeaderTdSelection

Sets styles on the Web Part selection check box.

 

ms-WPHeaderTdSelSpan

Sets span styles on the Web Part selection check box.

Item selection checkbox

ms-vh-icon

Sets styles on the item selection check-box icon.

 

ms-vh2

Sets the height property.

Type option, Name option, Modified option, Modified By option

ms-vh-div

Sets padding-top property.

 

s4-ctx

Sets padding, position, and display properties on the drop-down menu.

 

ms-vh2

Sets the height property.

Shared Documents text

ms-vb

Sets styles on the Shared Documents control group text area (bottom of group).

Add document link

ms-addnew

Sets styles specified to the Add document link.

Photo image

ms-rte-layoutszone-outer

Rich text editor class that sets the float property on controls of the Team Site Home Web part.

 

ms-rte-layoutszone-inner

Rich text editor class that sets styles on content areas of the Team Site Home Web part.

 

ms-rteThemeForeColor-5-5

Rich text editor class that sets the theme fore-color (to dark blue) on the Getting Started Wiki area.

Getting Started area

ms-rte-layoutszone-outer

Rich text editor class that sets the float property on controls of the Team Site Home Web part.

 

ms-rte-layoutszone-inner

Rich text editor class that sets styles on content areas of the Team Site Home Web part.

 

ms-rteThemeForeColor-5-5

Rich text editor class that sets the theme fore-color (to dark blue) on the Getting Started Wiki area.

Share this site, Change site theme, Set site icon, Customize QuickLaunch links

ms-rteTable-0, ms-rteTableEvenRow-0, ms-rteTableEvenCol-0, ms-rteTableOddCol-0, ms-rteTableOddRow-0

Rich text editor classes that set styles on the controls under the Getting Started Wiki area.

 

Reference http://msdn.microsoft.com/en-us/library/ms438349.aspx

Thursday, September 22, 2011

Save site as template not visible in SharePoint Site Actions

This can make visible by turning off the SharePoint Server Publishing in the manage site features. If you enable the publishing features Save as Template is not visible.

Saturday, September 17, 2011

Please locate this file or insert Microsoft Visual Studio Team System 2010 Team Suite Beta 1 – ENU disk 1 now

this massage came when i tried to install  Visual Studio 2010 Service Pack 1. I do not have the Team foundation installed in my machine either.

Ultimately i found that there is a program installed in Microsoft Team Foundation Server 2010 Beta 1 Object Model – ENU in the program files. i uninstalled it,

Wow.. I manage to install the service pack without any errors.

Thursday, September 8, 2011

How to Improve Workflow Performance in SharePoint Server 2010

SharePoint workflows are getting  slow for several reasons. in my environment I'm having a problem with following performance issues, therefore in my environment i got following problems.

  • When a item added to the library it takes some times to initiate the workflow.
  • Workflow mail generating is not very fast sometimes.
  • Workflows takes more time to process
  • “Due to heavy load, the latest workflow operation has been queued. It will attempt to resume at a later time” is coming sometimes.
  • I had a custom workflow approval web part and it is taking more than 30 seconds to proceed.

Work Done

I had a custom workflow approval web part and it is taking more than 30 seconds to proceed.

here in my custom web part there is the function which is programmatically updating the workflow.

SPWorkflowTask.AlterTask(item, data, false)

the last parameter mentioning whether it is synchronous asynchronous. if  is it true it it will wait until workflow schedule accept the workflow task. this is taking 30 seconds most of  the time. if it is false the method will return true immediately and not waiting for schedule approval.

Reference:
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.workflow.spworkflowtask.altertask.aspx   

Farm Level Workflow Improvements

There are few ways that we can improve SharePoint workflow  services.

  • Increase Throttle Size
  • Increase Batch Size
  • Time Out
  • Workflow Timer Interval

Increase Throttle Size

“The workflow throttle setting controls how many workflows can be processing at any one time on the entire server farm”. (Ref MSDN) since if we  can increase the throttle it will help to increase the number of workflows running at a time.

Following command shows how to get the existing value. the default is set to 15. use SharePoint shell to execute this command.

stsadm -o getproperty -pn workflow-eventdelivery-throttle

image

You can change the value by using following command. Below example change the current value to 25.

stsadm -o setproperty -pn workflow-eventdelivery-throttle -pv "25"

image

Increase Batch Size

“batch size property controls how many work items waiting to be processed by the timer service will be executed in each run” (Ref MSDN). Therefore if we increase the Batch Size there will be more workflow items ready to execute in the next time. Batch size is improving performance in Immediate Execution and Timer Job.

Following command shows the current batch size in the farm.

stsadm -o getproperty -pn workitem-eventdelivery-batchsize

image

as you can see default value is set to 100. following command will increate the size to 125.

stsadm -o setproperty -pn workitem-eventdelivery-batchsize -pv "125"

image

Time Out

Timeout specify the time which can be take maximum to complete the workflow timer job. of cause not finished timers jobs can  proceed in next cycle. this value is specify in minutes. default value is 5.

Following command shows how you can view the current configuration.

stsadm -o getproperty -pn workflow-eventdelivery-timeout

image

Following command will change the existing value to 10.

stsadm -o setproperty -pn workflow-eventdelivery-timeout -pv "10"

image

Workflow Timer Interval

Workflow timer Interval how often SPtimer job should run to process workflow items. this is specify in the application level not in the farm level like others.

following command shows the current setting of the web application.

stsadm -o getproperty -pn job-workflow -url http://Webapplication

If you type wrong URL following error will come.

The server administration programs and the Microsoft SharePoint Foundation Web applications on this Web server are not compatible.  Ensure that the administration program is the same version as the Web application.

image

Following table shows the values you can set for the property.

SPTimer schedule string format

Meaning

"Every 10 minutes between 0 and 30"

Timer fires every 10 minutes from the top of the hour to half past the hour

"Hourly between 9 and 17"

Every hour from 9 A.M. to 5 P.M.

"Daily at 15:00:00"

Timer fires every day at 3 P.M.

"Monthly at 15 15:00:00"

Timer fires on the 15th of every month at 3 P.M.

Following command set the workflow timer interval.

stsadm -o setproperty -pn job-workflow -pv "Every 10 minutes between 0 and 30" -url http://webapplication:port

image