1

is there an option how to enable ajax functionality in listview web part type added by code? Iam facing problem where we added 2 list view web parts on the page and they behave really strange. I read article where enabling ajax should fix this behavior however i dont know how to enable the ajax. In public members of list view web part there is not such properties for ajax enabled.

1 Answer 1

0

Enable async refresh: http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webpartpages.dataformwebpart.asyncrefresh.aspx

You can also set auto refresh and refresh interval to get actual data without page reloading: http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webpartpages.dataformwebpart.autorefresh.aspx http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webpartpages.dataformwebpart.autorefreshinterval.aspx

2
  • well actualy what you wrote down is true, however ListViewWebPart does not subclass DataFormWebPart
    – Ivan
    Commented Mar 6, 2013 at 6:31
  • I thought you tell about XsltListViewWebPart that is derived from DataFormWebPart. You can convert old ListViewWebPart into XsltListViewWebPart: sharepoint.stackexchange.com/questions/21951/…
    – Tim York
    Commented Mar 6, 2013 at 11:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.