Hi,
I have a WebGrid that displays thousands of rows, so i'm using LoadOnDemand.Xml. And also when clicking the columns headers, the rows will be sorted by that column:
------------------------------------------------------------------------------------------------------------------------------------------------
MyUltraWebGrid.Browser = Infragistics.WebUI.UltraWebGrid.BrowserLevel.Xml
e.Layout.LoadOnDemand = Infragistics.WebUI.UltraWebGrid.LoadOnDemand.Xml
e.Layout.XmlLoadOnDemandType = Infragistics.WebUI.UltraWebGrid.XmlLoadOnDemandType.Synchronous
e.Layout.AllowSortingDefault = Infragistics.WebUI.UltraWebGrid.AllowSorting.OnClient
e.Layout.HeaderClickActionDefault = Infragistics.WebUI.UltraWebGrid.HeaderClickAction.SortSingle
When clicking on a column, only the visible rows sorted, and when i scroll down to view more rows, they didn't sort either. So how can i manage the sorting correctly when using XML LoadOnDemand ? and can i recall the sort method ?
Hello,
Client-Side Sorting (performance issue)
I'm using an UltraWebGrid to display data, with client-side sorting. but the performance is low and it take more time to sort.
Broswer="Xml"; LoadOnDemand="Xml"; AllowSortingDefault="OnClient";
i need the clarification of why taking more time to sort and how to resolve the issue.
As per my understanding, sorting always happens on server in case of LoadOnDemand=XML. So it should work with “OnClient” setting also. And it is working for me as expected.
I am wondering why it is not working for you. Could you provide some more detail?
(1) Are you using any custom sort?
(2) Does server trip happens when you click on sort? Check this by using break point in Page_Load
It will be very helpful to identify issue if you can provide a sample.
i did it and nothing happened....
Try chaning following
e.Layout.AllowSortingDefault = Infragistics.WebUI.UltraWebGrid.AllowSorting.Yes