Insert new row issues + validation working first time

2 posts, 0 answers
  1. David
    David avatar
    18 posts
    Member since:
    Apr 2016

    Posted 10 Oct 2016 Link to this post

    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.



  2. Stefan Nenchev
    Stefan Nenchev avatar
    665 posts

    Posted 11 Oct 2016 Link to this post

    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.

    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.
Back to Top