XsltListViewWebParts with Paging problem or SaveChanges error

Let’s imagine, that we want to have SharePoint Library Template with more than 90 Views.

We want to define this views inside of List Schema.xml file because this is the easiest way for fast provisioning of SharePoint lists and their views. But there is the limit – List definition in Schema.xml file could contains max 90 views!

So we have to choose another way – we could define this views “by code”. We could make just few common views by Schema.xml and other could be copied from them with list.SaveAsNewView() function from SharePoint SSOM and then we could modify it by code.

After that we want to add this list views to some pages at SharePoint. Default views, made inside of Schema.xml could be added to page “by xml” with XsltListViewWebPart where we have to define BaseViewID for each view.

But views, created “by code” could be added into pages “by code” too. And here we could have problems with some SharePoint versions.

Continue reading “XsltListViewWebParts with Paging problem or SaveChanges error”

Website Powered by WordPress.com.

Up ↑