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,
How do i get OnCustomSort to fire so when a header is clicked the method is called, a flag can be set and the main binding method can apply the appropriate action. The following will not fire:
aspx
<ISWebGrid:WebGrid ID="theGrid" ... OnCustomSort="theGrid_CustomSort" >
<LayoutSettings ColumnHeaders="Yes" .. AllowSelectColumns="Yes" AllowSorting="Yes" AllowEdit="No"
..>
aspx.cs
protected void theGrid_CustomSort(object sender, ISNet.WebUI.WebGrid.SortEventArgs e) { // determine what needs to be sorted. THIS DOES NOT FIRE }
I need a worked example please.
Regards
Pendry
Hello Pendry,
You did not set one property. Try to set AutomaticSort false. You can find this property by open WebGrid designer>>Advanced Tab>>RootTable>>See all properties.
Regards,Handy
Hi Pendry,
You can get it in e parameter, e.SortColumns.GetNamedItem("NameOfYourColumn"). In those property, you can find the sort direction as well.
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