I have displayed a sharepoint list view on webpart using SPView.RenderAsHtml() method with following code:

System.Text.StringBuilder sb = new System.Text.StringBuilder();
SPList list = web.Lists.TryGetList("List1");
SPView myView = list.DefaultView;
sb.Append("<p>" + myView.RenderAsHtml() + "</p>");
Literal1.Text = sb.ToString();

No problem in displaying view but Paging & Filtering for the view is not working on Office365 as it is working fine on on-premise.

enter image description here

I have already set a Paged='TRUE' for the view,

<RowLimit Paged="TRUE">5</RowLimit>

When I am clicking on NextPage button then page url is changing to


but actual paging not working.

Any Solution ?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.