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

fire Radgrid Selectedindexchange on Up/down arrow keys click

1 Answer 27 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Kishor
Top achievements
Rank 2
Kishor asked on 11 Aug 2014, 07:20 AM
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


1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 13 Aug 2014, 02:22 PM
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.

 
Tags
Upload (Obsolete)
Asked by
Kishor
Top achievements
Rank 2
Answers by
Eyup
Telerik team
Share this question
or