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

Radgrid Shortcuts

1 Answer 52 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rasool
Top achievements
Rank 1
Rasool asked on 28 Apr 2015, 09:51 AM

Hi Dear

I test radgrid shortcut (keyboard navigation) but InitInsertKey not work.Also i test your online demo but it is bot work:

 <ClientSettings EnableRowHoverStyle="true" AllowKeyboardNavigation="true">

 <KeyboardNavigationSettings EnableKeyboardShortcuts="true" InitInsertKey="Z" />

 Of course my grid is in batch edit mode.Meanwhile i need a row number in batch edit grid but i dont know to add.for a normal rid i use this :

<telerik:GridTemplateColumn UniqueName="RowNo" HeaderText="<%$ Resources:Resource, row %>"
                AllowFiltering="false" HeaderStyle-Width="40px" DataField="IDAnbarsanad" Aggregate="Count" FooterAggregateFormatString="{0:N0}" >
                    <ItemTemplate>
                        <%# (Container.ItemIndex+1).ToString() %>
                    </ItemTemplate>
                    <EditItemTemplate>
                                    
                    </EditItemTemplate>
                </telerik:GridTemplateColumn>

Please help me.

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 01 May 2015, 07:34 AM
Hello Rasool,

Note that in order for the InitInsert command to be fired with the shortcut key RadGrid should be focused.

I tested the behavior in the online demo and it is working as expected on my end. I also made a sample video of the functionality. Check it out here.

The approach you are using for displaying row numbers can also be applied in Batch Editing mode. Try to add the following markup and see how it works.


<telerik:GridTemplateColumn UniqueName="RowNo" AllowFiltering="false" HeaderStyle-Width="40px" Aggregate="Count" FooterAggregateFormatString="{0:N0}">
    <ItemTemplate>
        <%# (Container.ItemIndex+1).ToString() %>
    </ItemTemplate>
</telerik:GridTemplateColumn>



Regards,
Viktor Tachev
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
Grid
Asked by
Rasool
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or