This is a migrated thread and some comments may be shown as answers.

Custom GridViewColumn

1 Answer 113 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jerome
Top achievements
Rank 1
Jerome asked on 01 Aug 2011, 05:39 PM
Trying to figure out how to provide a control on a custom GridViewBoundColumnBase derived class to switch into edit mode for the cell. During non-edit mode, the contents is a clickable link. This makes it impossible to switch into edit mode. I'd like to just put a little button in the cell to switch to edit mode.

To do this, I need to figure out two things within the CreateCellElement method: whether the column is ReadOnly, and how to raise a BeginCellEdit event of some fashion. BeginEdit switches to edit mode for the row, but not for the cell.

Can ya'll help me out on either of these?

1 Answer, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 02 Aug 2011, 12:11 PM
Hello Jerome,

You may easily achieve such a behavior using predefined cell templates. Would you please, inform us whether this solution meets your requirements. I have prepared an example project that illustrates the described approach. It is attached for your reference. 

Kind regards,
Ivan Ivanov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
Tags
GridView
Asked by
Jerome
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Share this question
or