disable key ENTER to go to next line(row)

4 posts, 0 answers
  1. Miclei Bononi
    Miclei Bononi avatar
    1 posts
    Member since:
    May 2010

    Posted 03 Aug 2011 Link to this post

    hello, I'm working with RadGridView and put a checkbox to select the row that I want. It turns out that if I selected the row and click key Enter, and undo my selection goes to the next row. I put a treatment in the KeyDown event and it works, just that when I edit the cell and give a finish and it deselects ENTER and go to the next line .. how to disable it?
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 04 Aug 2011 Link to this post

    Hi Miclei Bononi,

    You may try to predefine the behavior of the default keyboard command provider. Please take a look at this blog post for a reference.
    Let me know in case you need any further assistance.
     

    Kind regards,
    Maya
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  3. AndreasW
    AndreasW avatar
    13 posts
    Member since:
    Jul 2011

    Posted 01 Mar 2012 Link to this post

    Hi,
    I need to accomplish the same, but in my case the RadGridView are created as a datatemplate for a RadTabController, so I cant refere to it from the code-behind as in the blog post. 

    Any idea on how to solve it in my case?



    Greetings 
    Andreas
  4. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 02 Mar 2012 Link to this post

    Hello Andreas,

    You can try creating an attached behavior that sets the keyboard command provider and attach it to those RadGridView-s that you want. Another possible approach would be to find them through ChildrenOfType<T>() extension method (as children of RadTabControl/Item) and set it there.  

    Regards,
    Maya
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top