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,
When I use RootTables and ChildTables, when the childTables has data,it shows the data,but when I delete all of the childTables data, now it shows the header only in childTables,I wonder if it could realize that the childTables'header should hide because the childTables'data is empty. but I don't konw how to realize it. I konw set the Hierarchical="true" it support master and detail table show,but set Hierarchical="false", it didn't show that, but in the behind code when I set Hierarchical="false",it also show the Hierarchical propertity. so could you please give me a hand?
function WebGrid1_OnAfterResponseProcess(controlId, actionName, lastRequestObject, xmlResponseObject) { var WebGrid1 = ISGetObject(controlId); if (actionName == "DeleteRow") { var childRowsLenght = lastRequestObject.GetParentRow().GetChildRows().length; // if there is no child row any more if (childRowsLenght == 0) { // we need to refresh the WebGrid to apply the ChildRowEmptyAction property WebGrid1.Refresh(); } } return true; }
Also “RestoreExpandedChildRows” property to “True” and “RestoreRowSelection” to “All”.Hope this helps.Regards,Hans.
Hi Kristian ,
Thank you very much,the child table is hide now,but the Hierarchical property does not work .first when I set the Hierarchical property to true,when the child table is empty, I hide the child table, I set the Hierarchical property to false,but it still show the Hierarchical show,how to hide it?
Hello,Could you please provide me a simple sample that replicate your issue?So I can help you to investigate your issue on my end.Thank you.Regards,Hans.
This is my samples,please have a look! Thank you.
Hello,Thank you for your sample.After I investigated you code, it seems the issue persist due to mistakenness in your code.You already define the WebGrid’s structure from the beginning you create the WebGrid.Therefore, you couldn’t delete the structure just by using this code:
WebGrid1.LayoutSettings.Hierarchical = false;WebGrid1.ClientAction.RefreshModifiedControls();
And as far I know, you couldn’t delete table by using this query code:
string StrSql = "Delete from Schedules ";
However, if want to make any changes in your WebGrid’s structure.I recommend you to create the WebGrid’s structure programmatically.With this scenario, you could have more dynamic WebGrid’s structure.Regards,Hans.
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