|
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?
|
|
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.aspxThanks!
|
|
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?
|
|
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!
|
|