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

Grid does not leave edit mode

3 Answers 63 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 16 May 2010, 11:57 PM
Hello,

It seems that if I set the ValidationMode and add a RowEditEnded handler on my grid either declaratively or programmatically, the grid does not leave edit mode when the Enter key is pressed.  The only way I can get it out of edit mode it to click on another row.  If I do not add a RowEditEnded event handler, then pressing Enter works as expected.

Am I doing something wrong?  Missing something?

Update: It seems to be related to setting ValidationMode="Row".  With this setting, even if I have no RowEditEnded event handler, the cell will stay in edit mode.

Thanks,
Mark

3 Answers, 1 is accepted

Sort by
0
Yordanka
Telerik team
answered on 17 May 2010, 07:56 AM
Hi Mark,

ValidationMode property was removed in Q1 2010 version. Please, refer to our Changes and Backward Compatibility for more information. Instead ValidationMode, you can use cell (CellValidating) and row (RowValidating) validation events if you want to control validation on cell or row level.

Sincerely yours,
Yordanka
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.
0
Mark
Top achievements
Rank 1
answered on 17 May 2010, 07:13 PM
Hi Yordanka ,

Unfortunately I am not licensed for that version.  However, I am not looking to validate the entry at all.  What I would like, is for the cells of the row being edited to exit edit mode when Enter is pressed.  I have narrowed it down to the fact that when ValidationMode is set to Row, the last cell being edited does not leave edit mode when Enter is pressed.  Instead, you have to click on another row in which case any persistence logic you have behind the RowEditEnded event gets executed twice.  I am not sure that performing any validation would change this behaviour.

FWIW, I would love to upgrade to a newer version of the toolkit as I realize that there have been numerous bug fixes and enhancements, but I cannot afford to do so.  Do you know whether there will be another version available to MSDN subscribers as with the 2009 Q2 release?

Thanks,
Mark.

0
Hristo
Telerik team
answered on 18 May 2010, 02:24 PM
Hello Mark,

Unfortunately there are no recent plans for another free editions of RadControls for WPF.

All the best,
Hristo
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.
Tags
GridView
Asked by
Mark
Top achievements
Rank 1
Answers by
Yordanka
Telerik team
Mark
Top achievements
Rank 1
Hristo
Telerik team
Share this question
or