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
two webgrid in one page(grid a and grid b), webgrid a display hierarchical data, when select children table row, refresh webgrid b by client code, in b_InitializePostBack event,
SelectedObject selObj = a.RetrieveClientLastSelectedObject(); WebGridRow selRow = (WebGridRow)selObj.GetElement();
this row "WebGridRow selRow = (WebGridRow)selObj.GetElement();" throw a error.
"System.Exception: SelectedObject's Element is not available yet in this event." why?
WebGrid version is 6.0.7200.220.
thanks
This behavior is not an issue.
During PostBack or FlyPostBack, expanded child row will be collapsed at once. Thanks to the WebGrid development team that has included a nice enhancement to preserve expanded child rows automatically. A new property named RestoreExpandedChildRows is now added to the LayoutSettings.
When enabled, WebGrid automatically tracks the child rows that end users expanded during user interaction. Next, when users performed any FlyPostBack™ actions - such as sorting, refresh, filtering, etc - WebGrid will restore any matching child rows that expanded previously. This long-awaited enhancement is also applicable to any level of nested tables.
To enable this feature, simply set RestoreExpandedChildRows property to true value.
Hope this helps.
I was able to reproduce the issue on my local end.
This issue will be forwarded to WebGrid development team to be investigated further. I’ll get back to you as soon as I heard any news from the dev team regarding this issue.
Thanks a lot, This't OK!
Glad to hear the good news.
Should you need further assistance or run into any technical problems regarding our controls, feel free to post it into our community site. We would be happy to assist you again.
I found two problems.
1. when i sort webgrid A by click someone column head(expanded child status), it still show error "System.Exception: SelectedObject's Element is not available yet in this event.". I set RestoreRowSelection = All, but still show same error.
2.webgrid A have two rows(a_rows1 and a_rows2), When i expanded a_rows2, select first child row, webgrid B display right(pic1), When i expand a_rows1, select first child row of the a_rows1, webgrid B still display right, after this operation, i select first child row of a_rows2 again, WebGrid B display error information(pic2). when i select secondly child row of a_rows2,WebGrid B display information corresponding first child row of the a_rows2(pic3), when i select third child row of a_rows2,WebGrid B display information corresponding secondly child row of the a_rows2(pic4), When i shrink a_rows1, then select first(second or third) child row of a_rows2, WebGrid B display right(pic5). i debug the code, when a_rows1 is expand, get information by "RetrieveClientLastSelectedObject()" function is not right. is this a bug?
I tried to reproduce the problem in my local by creating a simple sample of WebGrid based on your description, but my efforts were not successful. I know that I might miss something during my attempt to reproduce the issue.
I’m willing to advice you further but in order to do so I would need you to elaborate on your specific scenario by give us a running simple sample that replicates the issue and a step-by-step guide that we can use to observe the problematic behavior.
I create a sample project show the issue 2, you can use "create table.sql" file to create table and data. my db name is SampleDB.
when set "wg2" AllowAutoDataCaching = False, issue 1 will happen.
thanks.
Thank you for the sent sample.
I’m currently still investigating this issue and need more time to provide you with solution, suggestion, or sample. I’ll get back to you as soon as possible.
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