SharePoint Site templates

Leave a comment

Change Site look in couple of Clicks.. many nice template to choose from... and yes it is All HTML5...

Change Site look in couple of Clicks.. many nice template to choose from… and yes it is All HTML5…

First SharePoint 2013 App

1 Comment

First SharePoint 2013 App

SharePoint 2013 App

SharePoint 2013 forums

Leave a comment

Below mentioned forums can be used for discussions/QnA about SharePoint 2013

SharePoint 2013 Preview for IT Professionals

Use this forum to ask questions and comment about SharePoint 2013 Preview as it pertains to setup, deployment, administration, and other IT Professional issues.

SharePoint 2013 Preview for Developers

Use this forum to ask questions and comment about SharePoint 2013 Preview as it pertains to development, customization, and other Developer issues.

Developing Apps for SharePoint

Use this forum to ask questions and comment about developing apps for SharePoint 2013.

Error: Value does not fall within the expected range

1 Comment

Last week i was working with a list where i have more than 10 lookup fields. By Default sharepoint does not allow more than 8 lookup column to be shown in a view but you can have there columns in the list if not showing in a single view.

In my code, i was reading the 10 people picker value based on a condition using SPQUERY and then copying it to another list.
While accessing 9th lookup column, i got the error “Value does not fall within the expected range”. After investigating the problem I had found that returned list object contains only 8 lookup fields.

You will face this issue for all fields above threshhold value.

Solution:

Earlier I was using

SPListItemCollection coll = configList.GetItems(query);
if (coll.Count > 0)
{
SPListItem confiitem = coll[0];
}

Instead of using SPQUERY returned SPListitem, i used

SPListItemCollection coll = configList.GetItems(query);
if (coll.Count > 0)
{
SPListItem confiitem1 = coll[0];
SPListItem confiitem = configList.GetItemById(confiitem1.ID);
}

Strange but item returned through GetItemById allows you to access lookup column (i.e. People picker column) above threshhold value as well

Hope it will help you….

Extending SharePoint 2010 with HTML5

Leave a comment

Does/Will SharePoint 2010 support HTML5?

This is one of most frequently asked questions from my audience in recent SharePoint talks. There seems to be a lot of interest in HTML5 and using it in SharePoint 2010. I gave a talk on Extending SharePoint 2010 with HTML 5 and excerpts from the same are listed below:
Depending on what you want, the answer may be quite different. Before we come to conclusion, here are some facts about current state of SharePoint 2010 and HTML5
1.    SharePoint is from family of application rendering output in XHTML 1.0 and CSS 2.1 and hence does not have built-in HTML 5 support. The Output HTML is not HTML 5.
2.    Mostly, it is up to browsers to support content rendering and same is true for SharePoint.
3.    SharePoint usages Master Pages and content rendering can be controlled through Master Page.
Considering above points,
  • If the need is to output SharePoint pages in HTML 5 that can be validated, we need to wait for future releases of SharePoint (Wave 15).
  • If you want HTML5 tags into SharePoint 2010 pages, this can be achieved by making changes to Master Page.

Changes required:
In SharePoint 2010 master pages, change the DOCTYPE to HTML5,  
Replace
<DOCTYPEhtmlPUBLIC“-//W3C//DTD XHTML 1.0 Strict//EN”http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&#8221;>”
with
“<!DOCTYPEhtml>”

Also note, by default, most SharePoint 2010 master pages have the following meta tag in them:

“<metahttp-equiv=“Content-Type”content=“text/html; charset=utf-8” />”

Delete it.

With the DOCTYPE changed and the meta tag deleted, the master pages renders as an HTML5 page

Hope it will help in finding the right answer for your scenario. 

The slides used during presentation can be found below: