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 Siva,
Yes, you can set ChildNotExpandable property to true. This property is available in WebGridRow class.
You can set the property in WebGrid1_InitializeRow event, which is shown in the following example.
protected void WebGrid1_InitializeRow(object sender, ISNet.WebUI.WebGrid.RowEventArgs e) { if (e.Row.GetChildTableRows(e.Row.Table.ChildTables[0]).Count == 0) e.Row.ChildNotExpandable = true; }
Hope this helps.
Best Regards,
Gordon Tumewu
Hi Siva,Yes, you can set ChildNotExpandable property to true. This property is available in WebGridRow class. You can set the property in WebGrid1_InitializeRow event, which is shown in the following example. protected void WebGrid1_InitializeRow(object sender, ISNet.WebUI.WebGrid.RowEventArgs e) { if (e.Row.GetChildTableRows(e.Row.Table.ChildTables[0]).Count == 0) e.Row.ChildNotExpandable = true; }
Adding to Gordon's reply, the reason why we don't automate this process is for performance reason. The checking for each child table row could be expensive and developers often used different way to measure the child rows availability.
The above example will work if you're not using "hierarchical load on demand" feature, and it also assumes you're using strongly dataset which prefill the child rows, which may not be the case in some enterprise scenarios.
Thus, a better solution is to let customers decide their own way to measure the child rows availability, and set the property when necessary.
For instance, if you're using custom business object or LINQ query, you may use your own function such as:
if (!MyDAL.HasOrder(e.Row.KeyValue)) { e.Row.ChildNotExpandable = true; }
Regards,Jimmy.
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