Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
115
Sorting rows with LoadOnDemand.Xml
posted

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 ?