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
Using WebGrid version 7.0.7200.419. I am creating a ColumnSet programatically within the PrepareDataBinding event. Based upon a criteria the user selects, in this event, some fields are made invisible prior to creating the columnset. For example, there is a Center, Division and State fields. if the user selects Center, than Division and State is hidden. If selects State that all 3 fields are shown. When the ColumnSet is created, again if the Center is selected than the Columnset for the State and Division fields are not created. This works good, except when I try to sort on any field by clicking on the column header. No fields are sorted and Firebug shows an error in WebGrid_code.js/707200419, v23c29 is null "var WG40 = { COLHEADER: "CH", COLFOOTE...utSettings.HelpURL; if (veab23 == "")
But if the users State and no fields are hidden and all columnsets are created than everything works fine.
Any ideas? Whats the best way to have multiple ColumnSets based upon the criteria a users selects? Hiding fields etcs?
Thanks
Also with IE 7, the above is very slow and after about 3 clicks, crashes IE?
Found the problem, I had 4 sorted columns and with State and Division, 2-3 of those columns were hidden. Creating sorted Columns on visible columns based upon the users criteria fixed this problem.
Hi,
Does this issue also occur in our WebUIStudio 2011R1? In WebUIStudio 2011R1, WebGrid7 uses higher hotfixes. Please let us know if this problem also occurs when creating ColumnSet via design or not.
Regards,Handy
Hi Handy,
Can't say if it doesn't work with 2011R1, as I haven't upgraded yet. This problem occurred whether you used the ColumnSet designer or programatically created the columnset. But as I said removing the ColumnSort on Hidden columns fixed the problem that I was seeing. I will be upgrading soon and will test further.
I've upgraded to 2011R1 and still am seeing problems with the ColumnSet and IE. Firefox works with no problems.
The grid sets up the columnset programatically in the PrepareDataBinding event. The database is accessed and returns the records in the InitalizeDataSource event. The most records ever returned are 111 records so no paging is used. There are 23 columns at most, but is determined by the user, lowest level user only sees 18 columns. DataCacheStorgage is Session, and ViewState is disabled. Sorting, filtering, exporting and resize of columns are allowed. Gird is used for reporting only and no updates are allowed. Freezing of colums are turned off.
When the RowLayout is set to PlainColumn, no problems, but when set to ColumnSet, if IE 7 only, after 2-3 operations such as sorting a column or filtering, IE hangs, may get the error that a script is running to long and you should kill the script.
No I can't reproduce this using the samples and a parred down sample can't be created as I use Oracle Stored procedures.
Any ideas?
Hello John,
When do you use to create the column dynamically in your page? Incorrect event or life cycle may cause the script is taking so long. I also need more details about what does your WebGrid run. Would it run another script when sorting? That's why I need a simple runable sample that shows the issue. I can try to debug and see what's wrong with the current page.
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