How to Create new hotkey to access ItemCommand on RadGrid

2 posts, 0 answers
  1. hongnguyenx
    hongnguyenx avatar
    20 posts
    Member since:
    Dec 2006

    Posted 15 Sep 2010 Link to this post

    HI all,
    I'm using RadGid control (Q3 2009), I see RadGrid have support Keyboard mode for Insert, Update, Delete... comand. But in my project I don't want to use it,
    I want to create new hotkey to access custom itemcommand  on Radgird, example:

    telerik:GridTemplateColumn HeaderText="View">
         <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
         <ItemStyle Font-Bold="True" HorizontalAlign="Center"></ItemStyle>
              <asp:ImageButton ID="imgView" runat="server" ImageUrl="~/Images/Edit.gif" CommandName="View" />

    Follow  above code block example, How to create a hotkey that when I press it, RadGrid will call corresponding method with CommandName.
    Please give me any idea for my problem...
    Thnks so much for any help.

  2. Nikolay Rusev
    Nikolay Rusev avatar
    2289 posts

    Posted 20 Sep 2010 Link to this post

    Hello hongnguyenx,

    RadGrid does not have such functionality. You can attach keypress/keydown handler on RadGrid element and handle manually the event. Inside that handler upon your custom logic you can trigger server command by calling fireCommand.

    All the best,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top