iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hello,
We are using a grid with Classic Paging and Custom Paging Load.
We are experiencing the following behaviour :
the column event time (see picture) is sorted for each page ! As you can see, the first page show events starting from 22:... and finishing with 00. The second page restart with event time from 22: agin and finish with 00.00.00.
Do you have any idea on what is causing this behaviour ? Some property allowing to disable sorting client side (we are sorting the data in another server application, but we would like our users to be able to sort on some columns).
Best Regard,
Nicolas
Hello Nicolas,
When you used Custom Paging, the sorting would sort each page because the data is loaded for each page (partially). If you want, you would need to handle your own sorting. Our sorting would not work because the data is not loaded all due in Custom Paging mode.
Regards,Handy
Hello Nicholas,
I think it depends on your custom paging. If you select Top rows for each page in your select method, the WebGrid sorting only will sort depend on your data. I think your WebGrid does not reload all data, but only partially (pages). That's why it will sort based on data at each page, not all data in all pages.So, would you mind to let me know your GetData() for custom paging?
Yes,
public HierarchicalList<Sample> GetData(ControlParametersBase parameters, Helper helper, int startRowIndex, int maximumRows, string sortExpression) { int? startRow = startRowIndex; var params = parameters; var data = GetDataRecords(params, helper, string.IsNullOrEmpty(params.CurrentSortOrder) ? sortExpression : params.CurrentSortOrder, startRow, maximumRows != 0 ? maximumRows : (int?)null); return data; }
GetDataRecords call a server-side method with take and skip arguments.
Is it enough?
Many thanks,
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname