Welcome Guest Search | Active Topics | Sign In | Register

What is the best solution to build column dynamically in Gridview? Options
WS
Posted: Wednesday, April 4, 2012 12:47:03 AM
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
eo_support
Posted: Wednesday, April 4, 2012 9:00:37 AM
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!
WS
Posted: Wednesday, April 11, 2012 10:05:29 PM
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


eo_support
Posted: Thursday, April 12, 2012 8:53:40 AM
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!
WS
Posted: Thursday, April 12, 2012 10:24:05 PM
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.



WS
Posted: Friday, April 13, 2012 12:55:48 AM
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!

eo_support
Posted: Friday, April 13, 2012 9:05:36 AM
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!
WS
Posted: Saturday, April 14, 2012 3:57:11 AM
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


eo_support
Posted: Monday, April 16, 2012 9:51:51 AM
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.aspx

This 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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.