Edit mode after double click

3 posts, 1 answers
  1. Arman
    Arman avatar
    4 posts
    Member since:
    Jul 2013

    Posted 03 Oct 2013 Link to this post

    Dear Telerik Team,

    I am using telerik RadGridView control.
    And I want to do editing after double click on the cell. 
    How can I do that ?

    In the forums I found a link with the similar question.
    Here is the link:
    http://www.telerik.com/community/forums/silverlight/gridview/edit-mode-force-double-click.aspx

    I tried this approach, but with this scenario in the RowEditEnded event handler I can't get oldValues dictionary from the argument. 
    It is always null. (I need to have old values and new values of the Row after editing).

    How can I resolve this issue ?

    Thanks advance,
    Arman.
  2. Answer
    Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 04 Oct 2013 Link to this post

    Hello Arman,

    Actually the approach suggested in the forum is not quite good.
    I would suggest you another approach to start the editing. Please invoke the BeginEdit() method of RadGridView instead:

    void Cell_CellDoubleClick(object sender, Telerik.Windows.RadRoutedEventArgs e)
    {
        (sender as GridViewCell).ParentOfType<RadGridView>().BeginEdit();
    }

    Let me know how this works for you.

    Regards,
    Didie
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. DevCraft banner
  4. Arman
    Arman avatar
    4 posts
    Member since:
    Jul 2013

    Posted 04 Oct 2013 Link to this post

    Thanks a lot,
    Now it is working fine.

    Best Regards,
    Arman.
Back to Top