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
I'm getting a strange error that I can't determine what the problem is and hoping that you may see something fom the stack trace that could help me in finding the problem.
I have a standard grid (v8), where when a user sets a filter that filter is saved off for use when the user returns back to this page. The saving and restoring of the filters is working and looks correct. With most of the columns there is no problem but there are 3 columns (no different from the other columns) that when teh filter is restored the error in the attached file occurs. I know I won't be able to create a simple page that shows the error, so hoping the stack trace gives some clue!
thanks
Hello,Thank you for the question.After I investigate this filter issue, it seems the issue occurs due to we want to filter the column when the column hasn’t rendered yet.I attached 2 WebGrid samples which show that we should / can filter a column after the column is already rendered (ready to be filtered)In this sample, I bind the WebGrid programmatically (with OleDbConnection).I add filtering code in PrepareDataBinding server side event. In that event I also add RetrieveStructure() method (to retrieve Column's structure).In the first WebGrid sample, I put the RetrieveStructure() method “before” filtering code. The result is the filtering works fine.Here’s the snippet code:
protected void WebGrid1_PrepareDataBinding(object sender, ISNet.WebUI.WebGrid.DataSourceEventArgs e){ if (!IsPostBack) { WebGrid1.RetrieveStructure(); WebGridFilter fltr = new WebGridFilter("ShipName", ColumnFilterType.Contain, "Vins"); WebGrid1.RootTable.FilteredColumns.Add(fltr); } }
In the second sample, I put the RetrieveStructure() method “after” filtering code. The result is I got the same error message as yours.Here’s the snippet code:
protected void WebGrid1_PrepareDataBinding(object sender, ISNet.WebUI.WebGrid.DataSourceEventArgs e) { if (!IsPostBack) { WebGridFilter fltr = new WebGridFilter("ShipName", ColumnFilterType.Contain, "Vins"); WebGrid1.RootTable.FilteredColumns.Add(fltr); WebGrid1.RetrieveStructure(); } }
Therefore, please kindly re-check / review your application’s code, whether the column is already rendered or not, when you try to filter it.Hope this helps.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