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

On Enter click grid.saveRow() does not work in IE 11

1 Answer 104 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jitender
Top achievements
Rank 1
Jitender asked on 21 Jan 2016, 10:01 PM

Hi There,

I have tried following function to save the grid value on Enter click.

   $("#tvmModuleGrid table").on("keyup", "tr", function (e) {
        var grid = $("#tvmModuleGrid").data("kendoGrid");
        var code = (e.keyCode ? e.keyCode : e.which);        
        if (code == 13) { //Enter keycode
            $(e.srcElement).closest("tbody").focus();
            setTimeout(function () {
                grid.saveRow();
            })
        }
    })

: I have also tried the same on keydown event, and also tried gridEdit mode before firing the saveRow.

Please let me know what I'm missing. I have read and tried a lot of option for this. I'm looking forward to your response.

Thanks,

Jitender

 

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 25 Jan 2016, 01:47 PM

Hello Jitender,

 

You need to make the Grid navigatable, so it can be focused, so the enter key is captured correctly. Please see the following example:

 

http://dojo.telerik.com/OVOzu

 

Regards,
Kiril Nikolov
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
Jitender
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or