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
Hi,
I have a webgrid loaded data inide it.
After that i have done group by based on three columns.
I want to know the total columns grouped by on OnAfterResponseProcess event in javascript.
Example:
Suposse I have groupd by three columns(mentoned in attached image) in grid.
I want count of those.
Regards
Rupesh Shakti
(Software Engineer)
Following snippet code will show the total grouped columns on OnAfterResponseProcess event in javascript.
<script> function ShowGroupedColumnsCount2(controlId, actionName, lastRequestObject, xmlResponseObject) { var grid = ISGetObject(controlId); var rootTbl = grid.RootTable; var grpColumns = rootTbl.GroupedColumns; alert(grpColumns.length); } </script> <ISWebGrid:WebGrid ID="WebGrid1" runat="server" ...> <LayoutSettings AllowGrouping="Yes" GroupByBoxVisible="true"> <ClientSideEvents OnAfterResponseProcess="ShowGroupedColumnsCount2" /> </LayoutSettings> ... </ISWebGrid:WebGrid>
The collection of grouped-columns can be accessed in [WebGrid id].RootTable.GroupedColumns. This should helps.
Glad to hear that the snippet code helps.
Should you need further assistance or run into any problems regarding our controls, feel free to post it into our forum. We would be happy to assist you again.
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