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
Similar to the post below
http://www.intersoftpt.com/Community/WebGrid/WegGrid/
I am finding different behaviors in regards to the DropDownList. I load my columns, values and dropdown list dynamically/programmatically on page load. Also similar to the code solution provided in the above post.
I've attached a few screen shots to refer to.
sample-1 is on initial page load.
sample-2 after I click the refresh grid icon on the bottom right.
sample-3 when I click in the cell.
sample-4 I refresh the page (ctrl+F5) and then I am able to see the all the values.
Thanks for your help in advance.
Ahmed
Hi Ahmed,
I’ve look for the sample that you show above and I figured the problem is on PrepareDataBinding event. This problem occurs because ValueList is not setted when PrepareDataBinding event. To resolve this issue, you can remove the validation (if (!IsPostBack)) from PrepareDataBinding event.
I put the revision of the sample here. Hope it helps.
Regards,
Bernard
Thank you for your reply Bernard. I actually don't use the PrepareDataBinding event. And I never check for IsPostBack or IsFlyPostBack.
I have a DataSource that I bind the grid to. In the InitializeLayout event, I call a function to clear any values in the WebValueLists. Then I call another function to load, create, and add the columns to the Grid. Seperately, I call another function that fills the WebValueList with a DataSource.
I’ve look on your code. I think the problem is WebValueList setted in wrong event. On InitializeLayout event, I suggest you to not to place dynamic object or data related settings especially for object that created during the runtime. You can clear and load the WebValueList on PrepareDataBinding event. I attach my sample here. Hope it helps.
Thank you Bernard.
I ended up clearing and loading the dropdowns in the PrepareDataBinding event and it has been consistant. I am still using InitializeLayout event though to create and add the columns to the grid.
Regards
Is it working fine now? If you have any other question please don’t hesitate to ask us.
Yes, it is working fine now. Thank you & regards.
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