|
Rank: Advanced Member Groups: Member
Joined: 2/27/2011 Posts: 37
|
Hi,
What is the best solution to build column dynamically in Gridview?
like EO.Web.CustomColumn and EditorTemplate is CheckBoxListTemplate
Thanks William
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
We do not advise on what's the best solution since everyone's situation and preference is different. You will need to review all your options and decide for yourself. If you have any questions about a specific option or feature we will be happy to help.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 2/27/2011 Posts: 37
|
Hi,
Thanks for your email.
now what I am wanting to do is to create a EO.Web.Grid on page, I have placed a grid with one column on page and at code behind I want to create other columns based on selecting a item from dropdown list, then bind data on it when postback, at moment I keep getting error message "Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree...", so I need some help from you.
Thanks William
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
This could be a bug that has already been fixed. You can try to download the latest build from our download page and see if it works for you. If it doesn't, please try to create a test page demonstrating the problem and post the test page. As soon as we have that we will try to run it here and see what we can find.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 2/27/2011 Posts: 37
|
Hi,
Thank you for this email, yeah it was a bug! now the error goes away after reinstalled.
|
|
Rank: Advanced Member Groups: Member
Joined: 2/27/2011 Posts: 37
|
Hi,
I also have another question about how to create Cascading DropDown list on EO.Web.Grid..I have placed a grid with one column on page and at code behind I want to create Cascading DropDown column.
can you help on this?
Thanks in advance!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
I am not exactly sure what you meant by Cascading DropDownList. Can you elaborate? If you meant nesting Grid, then we do not support that.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 2/27/2011 Posts: 37
|
Hi,
I have placed a EO.Web.Grid with one column on page and at code behind I want to create two Cascading DropDown columns, which is the second ddl items are based on the 1st ddl selection, so what is best way to achieve this?
Thanks William
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, You can do that but you will need to write the JavaScript code to create the list items. You can start from this sample: http://demo.essentialobjects.com/Demos/Grid/Features/Custom%20Column%20-%20Advanced%202/Demo.aspxThis sample simply updates the second columns' cell value when an item is selected in the first column. You will need to change the second column to a CustomColumn, and then change the code to set the second column cell value to code that renders some JavaScript code to the client to update the second column's drop down list (We won't write sample code for you on this, so you need to work out this part yourself). Thanks!
|
|