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

Problem of customize navigation with Grid

1 Answer 13 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 21 Mar 2014, 03:26 AM
Hi ,

   I have the similar issue with the post http://www.telerik.com/forums/problem-with-using-celledit-on-next-cell here.
   But I need to customize the navigation, not just pressing "tab" but also "enter" to navigate through the grid.

   I followed the last post
   $('#grid div table tr td input').live('keydown', function(event) {
        if (event.which == 9 || event.which == 13) {
            var grid = $("#grid").data("kendoGrid");
            var $td = $(this).parent();
            grid.closeCell();
            grid.editCell($td.next());
        }
    });

 But entered value doesn't saved in a cell. 
 How can I edit next cell with correct close previous input?

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 24 Mar 2014, 01:33 PM
Hi Jeff,

Please check the example below which demonstrates how to override the default behavior of the "enter" key in Grid with navigation enabled:

Kind Regards,
Vladimir Iliev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Jeff
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Share this question
or