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

Switching to edit mode

1 Answer 92 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jerome
Top achievements
Rank 1
Jerome asked on 30 Sep 2010, 12:05 AM
I'm trying to come up with a good way to have a cell that can be clicked on to navigate to another window related to the entity chosen in the cell. Typical application navigation. The edit mode for the cell has a button on the far right which opens a pop up window that lets the user query for an instance and choose it. Thus the user is able to edit the relationships of the data. Nifty.

Problem is I'm trying to come up with a good way to both allow the navigation in the cell, and switch to edit view. If I put a button in the CellTemplate, then the button is clicked on, instead of entering into edit mode. And there appears to be no further way to enter edit mode.

I was hoping the grid view had some way to show a control to enter edit mode, that was built in, so I wouldn't have to write it. If not, is there a RoutedCommand that can be raised from within the cell's template in order to enter edit mode? If so, I guess I could put in my own edit button.

1 Answer, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 04 Oct 2010, 07:51 AM
Hi Jerome,

There is such routed command (RadGridViewCommands.BeginEdit). For more information how to use commands you can take a look at this online demo (or its WPF counterpart).
Let me know if this doesn't help.

Regards,
Nedyalko Nikolov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Jerome
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Share this question
or