fire Radgrid Selectedindexchange on Up/down arrow keys click

Thread is closed for posting
2 posts, 0 answers
  1. Kishor
    Kishor avatar
    82 posts
    Member since:
    Oct 2012

    Posted 11 Aug 2014 Link to this post

    hello 

    How to fire Radgrid Selectedindexchange event  on Arrow  Up/down keys press click event

    I want to assign Radgrid cells value to  corresponding textboxex on up/dpwn arrow keys press


    thanks


  2. Eyup
    Admin
    Eyup avatar
    3007 posts

    Posted 13 Aug 2014 Link to this post

    Hi Sawan,

    Generally, if you have AllowKeyboardNavigation enabled, you can access the active row element the following event handler:
    <ClientSettings AllowKeyboardNavigation="true">
        <ClientEvents OnKeyPress="keyPress" />
    </ClientSettings>
    JavaScript:
    function keyPress(sender, args) {
        setTimeout(function () {
            var rowEl = sender._activeRow;
            if (rowEl) {
                // execute custom logic
            }
        }, 2);
    }

    In addition, I am sending a sample RadGrid web site to demonstrate how you can use the findControl and findElement methods to access any given element within the row element.

    Hope this helps.

    Regards,
    Eyup
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top