Welcome Guest Search | Active Topics | Sign In | Register

Grid ButtonColumn in edit mode Options
David
Posted: Wednesday, December 1, 2010 2:32:39 AM
Rank: Advanced Member
Groups: Member

Joined: 10/21/2009
Posts: 39
How can I have a ButtonColumn in a grid that changes to a textbox when the grid is in edit mode so the user can edit the text of the button?
eo_support
Posted: Wednesday, December 1, 2010 8:45:04 AM
Rank: Administration
Groups: Administration

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

None of the built-in column will do that for you. so you may want to take a look of CustomColumn. With CustomColumn the grid will give you an empty cell and you will be responsible for anything inside the cell, including both edit mode and display mode:

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

Thanks!
David
Posted: Wednesday, December 1, 2010 12:05:43 PM
Rank: Advanced Member
Groups: Member

Joined: 10/21/2009
Posts: 39
From your example I can see how to get a TextBox for edit mode but how do I specify a button display for non edit mode?
eo_support
Posted: Wednesday, December 1, 2010 12:39:25 PM
Rank: Administration
Groups: Administration

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

You would handle the column's ClientSideGetText to return some raw HTML that renders as a button.

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.