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

Close\End editing mode

3 Answers 231 Views
GridView
This is a migrated thread and some comments may be shown as answers.
srikanth
Top achievements
Rank 1
srikanth asked on 21 Nov 2013, 11:10 AM
i'm using RadGridView in my application, for displaying all users registered in my app, also i can edit them. When i started editing and wanted to move to another screen i need to "close" or "end" editing mode programmatically(on my ViewModel). Help me how to handle this.

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 21 Nov 2013, 12:05 PM
Hi,

If you would like to commit the edit programmatic, then you can invoke
RadGridView.CommitEdit().

How does this work for you?

Regards,
Didie
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
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
srikanth
Top achievements
Rank 1
answered on 21 Nov 2013, 12:38 PM
i have some save\discard functionality and its functionality works fine, the problem is when i start editing some row and doesn't ended that editing move to another screen and then move back i have "RowEditEnded" event rising. The navigating between screens doesn't dispose my views(i need it to be like it is now), So when i go to another screen the "RowEditEnded" even't doesn't rising, it's rising when i'm back to that screen. 

I need to rise that RowEditEnded manually, or i need to have some command like EndEdit()(this is like there is command BeginEdit())
0
Dimitrina
Telerik team
answered on 21 Nov 2013, 01:11 PM
Hi,

Would you please set ActionOnLostFocus="None". That way the edit should not be committed and therefore the RowEditEnded event should not be raised. Otherwise the command you can use would be RadGridViewCommands.CommitEdit.

Regards,
Didie
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
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 >>
Tags
GridView
Asked by
srikanth
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
srikanth
Top achievements
Rank 1
Share this question
or