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

Editing in the DataTemplate

1 Answer 63 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Pierre
Top achievements
Rank 2
Iron
Iron
Pierre asked on 13 Jul 2010, 04:47 PM
It is possible to do the same thing that we do in the RadGrid for ajax: Item template and a editItemTemplate?
I have a grid and a DataTemplate that display more informations. Some information in the DataTemplate can be modified by the user so I put some textbox. I think that the binding will catch the modified event when the textbox will lose focus, but the row do not place himself in edit mode like if I double click on a cell row.

In the ajax world I can set en template for viewing with only label and no TextBox, then if the user double-click on the row, the template change and the label are replace by textbox.

I try to achieve something similar. Any suggestion?

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 14 Jul 2010, 06:07 AM
Hello,

 Please check this demo for more info about CellTemplate/CellEditTemplate column properties. Furthermore you can check also these demos for more info about how to load different templates conditionally for both view and edit mode:

http://demos.telerik.com/silverlight/#GridView/Selectors/DataTemplateSelectors/CellTemplateSelector
http://demos.telerik.com/silverlight/#GridView/Selectors/DataTemplateSelectors/CellEditTemplateSelector

Best wishes,
Vlad
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
Pierre
Top achievements
Rank 2
Iron
Iron
Answers by
Vlad
Telerik team
Share this question
or