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

Prevent Insert Row Commit on Focus lost

2 Answers 124 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Infologic
Top achievements
Rank 1
Infologic asked on 09 Sep 2011, 09:24 AM
Hi,

I need to control the "edit mode" state of the insert row. Let say i have 2 Classes A and B with a "1xN link type" between A and B.
I have in the same screen 2 grids. 1 for type A et 1 for type B. When I add a A in grid 1 I want to be abble of adding Bs in grid2 whitout loosing the "edit mode" of grid 1 insert row.

How coul I do that with the code behind ?


2 Answers, 1 is accepted

Sort by
0
Accepted
Ivan Ivanov
Telerik team
answered on 09 Sep 2011, 11:34 AM
Hello Saint-Ellier,

Try setting ActionOnLostFocus to "None" on "grid 1". In this way you will prevent the RadGridView from committing its current edit operation.

Greetings,
Ivan Ivanov
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Infologic
Top achievements
Rank 1
answered on 12 Sep 2011, 08:42 AM
Works perfectly, thank you!
Tags
GridView
Asked by
Infologic
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Infologic
Top achievements
Rank 1
Share this question
or