Welcome Guest Search | Active Topics | Sign In | Register

I need to add a drop down list control to a grid, i am lost. used to using infragistics. Options
Stuart
Posted: Wednesday, July 21, 2010 12:11:13 AM
Rank: Newbie
Groups: Member

Joined: 8/29/2007
Posts: 6
Any thoughts?
eo_support
Posted: Wednesday, July 21, 2010 9:25:43 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You will need to use a CustomColumn to do that. We have several samples demonstrating how to use it. You can start from this one:

http://demo.essentialobjects.com/Demos/Grid/Features/Custom%20Column/Demo.aspx

Once you see how this sample works, you can proceed to the "Advanced" one:

http://demo.essentialobjects.com/Demos/Grid/Features/Custom%20Column%20-%20Advanced%202/Demo.aspx

You can find the documentation for CustomColumn here:

http://doc.essentialobjects.com/library/1/grid/custom_column.aspx

Note EditorTemplate is only rendered once for the whole Grid, so you can not have different drop downs for different cells by using EditorTemplate. If you wish to have different drop down for different cells, you will need to handle the CustomItem's ClientSideGetText to return raw HTML that renders as a drop down. The raw HTML will also need to include event handler JavaScript code that saves the changes back to the Grid when a change is made.

Hope this helps.

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.