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 All,
Say I have 200 records in a grid.We are having logic of retaining the Expanded Grouped rows.
This javascript error is coming
See attachment
Step 1.gridwith200rows.JPG
Step2:GroupingDoneon acloumn.JPG
step3:Expandedthe Group.JPG
step4:Clickingonrefreshbutton.JPG
step5:Javascript error when tried to retain the expanded grouped mode.JPG
Settings is
PagingMode="VirtualLoad" and VirtualLoadMode="Default"
Please advice.It is very urgent.
Regards,
Madhavan
Code used to retain the expand or collapse group state is:
var expandedGroupNodes; function WebGrid1_OnGroupExpand(controlId, tblName, groupIndex, rowPosition, rowIndex) { var WebGrid1 = ISGetObject(controlId); StoreExpandedGroupNode(rowPosition); return true; } function WebGrid1_OnGroupCollapse(controlId, tblName, groupIndex, rowPosition, rowIndex) { var WebGrid1 = ISGetObject(controlId); var splitResult = expandedGroupNodes.split(";"); for (var i = 0; i < splitResult.length; i++) { var expandedGroupNodeTemp; if (splitResult[i] != rowPosition) { if (expandedGroupNodeTemp == null) expandedGroupNodeTemp = splitResult[i]; else expandedGroupNodeTemp = expandedGroupNodeTemp + ";" + splitResult[i]; } } expandedGroupNodes = expandedGroupNodeTemp; return true; } function StoreExpandedGroupNode(nodePosition) { if (expandedGroupNodes == null) expandedGroupNodes = nodePosition; else expandedGroupNodes = expandedGroupNodes + ";" + nodePosition; return expandedGroupNodes; } function WebGrid1_OnAfterResponseProcess(controlId, actionName, lastRequestObject, xmlResponseObject) { var WebGrid1 = ISGetObject(controlId); if (actionName == "Refresh") { if (expandedGroupNodes != null) { var splitResult = expandedGroupNodes.split(";"); for (var i = 0; i < splitResult.length; i++) WebGrid1.RootTable.GetRowByGroup(0, splitResult[i]).ExpandGroupRow(); } } return true; }
I was unable to repro the issue on my end.Please modify the attached simple sample so that it replicates the issue for further investigation.
Sorry for the mistake.
I was able to repro the issue, but I need to inform you that your scenario (grouping on WebGrid with virtual load enabled) should be avoided. The reason why you should avoid such scenario is that since grouping requires all rows to be loaded.
Please let me know your response about this.
We need this scenario.
Basically our product is a BPM workflow product,This scenario is demanded by all our customers.
Users will be able to view their tasks with grouping on certain columns.
Currently the grouping state is not retained in the grid and we are doing work on retaining grid state as all of our customers wanted this feature,
Please suggest.
Hi all,
Any updates for me.
Currently, your scenario can’t be implemented with current version of WebGrid.
Please submit this requirement as “Feature Request” into our “Product Feedback” in your TDN account. Please don’t forget to add the information about the behavior of the new feature. Our development team will check the feasibility to implement this feature in our upcoming build.
Thank you.
Hi Yudi,
I am not able to log this feature request in our TDN.
Once if i create a new request it is asking to redirect to this community center.
It is very important feature for us,
Can you please forward this to your developement team.
Hi Madhavan,
Merry Chrismas and Happy New year.
My colleague is having day off. I have checked into our community center, your request has been created. The request would be forwarded into our developer team. Thank you.
Regards,Handy
Hi Handy,
Merry christmas and a very happy new year.
Please update us if you receive anything on this.
Ok. But if you remembered that we have talked about this feature before.:-) Our developer teams have not figured out how to implement it. We also need your advice.
I remember we have discussed on loading more data with grouping enabled.
Might be this is also related to same thing :-(.
Yes, as far i remembered the error will show if you are running grouping with virtual load scenario. So, i think this is also related with previous discussion.
we have the same problem , is ther any solution ?
Hello Sigma,
Could you tell me more details about your issue such as a simple sample that replicates this issue? At the past, our WebGrid does not support VirtualPaging in Group mode. But since WebGrid 7, we had this feature. Perhaps, your current WebGrid does not support this feature.
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