Editing in the DataTemplate

2 posts, 0 answers
  1. Pierre
    Pierre avatar
    212 posts
    Member since:
    Apr 2007

    Posted 13 Jul 2010 Link to this post

    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?
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 14 Jul 2010 Link to this post

    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
  3. DevCraft banner
Back to Top