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

Insert new row issues + validation working first time

1 Answer 109 Views
GridView
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 10 Oct 2016, 08:54 AM

Working with Q1 2012

Hi, I have a radgridview control, with custom columns (not autogenerated), all of them editable. When I click in the "Click Here to add new Item", that row changes into edit mode and the cursor is in the first column (C1). When I press TAB, the focus passes to the next column (C2) but it seems to exit from edit mode. Then I have to press TAB again 4 times to enter again in edit mode, but in C3. If at that moment I press SHIFT+TAB, it goes back to C2 in editmode, and if I press again SHIFT+TAB it goes to C1, also in edit mode, then I can press TAB again and goes to C2 in edit mode, and everything seems to work well. This happens every time I try to add a new row. And some times just the TAB behaviour is too wrong. Instead of passing to the next column of the same row, it passes to the next column of another row, like if radgridview is confused about tab navigation.

 

Apart from that, when I try to validate a cell, the first time I set an error it is shown, but then I rectify and try to put another invalid value and then press TAB and it does not shows any error, but does not let you change TAB.

 

I would appreciate some workaround to this.

 

Thanks in advance.

 

David.

1 Answer, 1 is accepted

Sort by
0
Stefan Nenchev
Telerik team
answered on 11 Oct 2016, 11:38 AM
Hi David,

I could not replicate the undesired behaviors with the latest versions of the control. We have applied multiple changes since 2012 and the issues seem to have been fixed at some point. What you can do as a workaround is to handle the KeyDown event of the RadGridView and apply your custom logic in the cases of pressing the Tab key. I suggest you review the RadGridView Commands article.

Regards,
Stefan Nenchev
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
GridView
Asked by
David
Top achievements
Rank 1
Answers by
Stefan Nenchev
Telerik team
Share this question
or