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

Inline Editing button Issue in RadGrid

4 Answers 44 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rk.MooRthy(DLL Version : 2008.3.1314.35) asked on 30 Jul 2013, 06:25 AM
Hi,
I have one telerik radgrid and one next click button on top of the grid(button for go to next page). Grid has some rows with inline editing..If i click the edit button, edit option(text box) will be open, Here if i type anything in that box and click enter button it will go to next button instead of firing edit button..
Can u anyone help me..?

4 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 30 Jul 2013, 06:48 AM
Hi Rk,

I'm not clear with your requirement.I guess you are editing using inline edit and using keyboard Enter to fire the event.
Here is a small code I tried with edit and keyboard navigation.Please elaborate on your requirement if this doesn't help.

ASPX:
<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="false" >
    <MasterTableView EditMode="InPlace">
        <Columns>
            <telerik:GridEditCommandColumn></telerik:GridEditCommandColumn>
            <telerik:GridBoundColumn UniqueName="OrderID" DataField="OrderID" HeaderText="OrderID" />
            <telerik:GridBoundColumn DataField="ShipCity" HeaderText="ShipCity" UniqueName="ShipCity" />
        </Columns>
    </MasterTableView>
    <ClientSettings AllowKeyboardNavigation="true">
    <KeyboardNavigationSettings EnableKeyboardShortcuts="true" AllowSubmitOnEnter="true" />
    </ClientSettings>
</telerik:RadGrid>

Thanks,
Princy
0
answered on 30 Jul 2013, 07:54 AM
Hi Princy,

Think so it is not applicable in my version (DLL Version : 2008.3.1314.35).
<KeyboardNavigationSettings EnableKeyboardShortcuts="true" AllowSubmitOnEnter="true" />

Here "keyboardnavigationsettings" is not supported..

Thanks
-Rk.MooRthy
0
answered on 01 Aug 2013, 07:40 AM
Hi, 
Can you anyone help me regarding this issue...?

Or Tell me the alternate solution for this issue...

-Rk.MooRthy
0
Andrey
Telerik team
answered on 02 Aug 2013, 06:05 AM
Hello,

As Princy pointed out one of the solutions is to use keyboard navigation for RadGrid. However, for this approach to work you will need to upgrade to the latest version.

Another approach is to find the control and hook its OnKeyPress event and to manually handle the case for the Enter key. Thus you will be able to define whatever behavior you need.

Regards,
Andrey
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
Answers by
Princy
Top achievements
Rank 1
Andrey
Telerik team
Share this question
or