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

Edit mode after double click

2 Answers 92 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Arman
Top achievements
Rank 1
Arman asked on 03 Oct 2013, 06:33 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Dimitrina
Telerik team
answered on 04 Oct 2013, 12:01 PM
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 >>
0
Arman
Top achievements
Rank 1
answered on 04 Oct 2013, 05:25 PM
Thanks a lot,
Now it is working fine.

Best Regards,
Arman.
Tags
GridView
Asked by
Arman
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Arman
Top achievements
Rank 1
Share this question
or