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
Our custom grid is completely database driven including the formatting. So we do the custom structure work ourselves. We also provide transparent "memory" of the grid as users modify it so it stores the grid structure any time a user modifies it, i.e., groups columns, sorts, resizes, removes or adds columns.
We store the info in XML via the grid's SaveTablesStructureToXml into our database and restore it and load it via LoadTablesStructureFromXml.
When we configure the grid, it's based on the grid definition provided by the database. All the columns are created/updated depending on the grid definition provided.
The problem is to keep what's saved in sync with a changed definition structure. This won't happen all that often, but when it does, we want to update the grid transparently without the user having to reload the page.
It's working, mostly, but I'm not sure what I'm missing and am hoping someone can help. The attached CustomGridInitialLoad image shows the grid when initially loaded. I then added a new column to the configuration in the database. The CustomGridAfterRefreshGridData image shows the grid after I click on "Refresh grid data" which shows the column added in the data rows, but it's missing from the column headers.
If I reload the page (see CustomGridAfterPageRefresh image) everything loads just fine. Essentially what I do in my CompareColumnConfiguration method is to:
When a column is removed from our definition structure and I refresh the grid via the refresh button or sorting or any action that posts the grid data, then it updates like image CustomGridColDelAfterRefreshGridData which shows the rows for the column are gone, but the header is still there. If I refresh the entire page, it loads fine.
The column still there introduces other problems of course since it'll crash the grid if you try to sort on it or anything related to it since it no longer exists.
I've attached flash videos to see the problem in action. Hopefully that will make the problem more clear. The sequence is in grid-column-dynamic:
The grid-column-dynamic-page-refresh sequence shows how it behaves when the column is added. Note in this sequence that it's fine when the page is refreshed.
Where did you added a column at your scenario and may i know the validation? It would be great if i could have a simple sample that replicate your issue. I think some condition ISPostBack or !ISPostBack should be affected the working code your have.
Regards,Handy
I'm not sure I understand what you mean by where. Our custom grid class does take IsPostBack into consideration along with other aspects, i.e., if it's a fly post back or a custom property and so on.
I can send you the entire class code, but would like to do that privately since it's proprietary code. I'll send an email to tech support with this thread referenced.
Ok, we have received your mail and will try to replicate the condition. I will let you know asap.
Handy,
Has the dynamic grid feature been added to 2011 R1?
Hi Yousif,
We are very sorry. It seems, we lost to track this issue due to the long respond time.But I do still remember the issue. However, would you mind to forward the previous email include the sample? I lost the sample when my computer got crashed.
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