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

IE : Kendo Grid (in-cell mode) cell focus issue, ignores the first character

1 Answer 347 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Arpan
Top achievements
Rank 1
Arpan asked on 04 Jun 2015, 11:16 AM

IE issue : focus is seen to the editable cell with the newly bind data, but when user tries to write '123', it will type '23'.

Thought reason : It shows the cell enable and editable, but internal focus might be on span or td element and with second character it gives focus to the textbox.

********************************

I have a kendo grid with 'in-cell' mode, with server side paging enabled. (Mvc Razor view).

.chstml file

Html.Kendo() ..............Read(read => read.Action("GetInvoiceDataForGrid", "InvoicingCommon")) //POC change

                                   .Batch(true).PageSize(5) 

 

Scenario (this works well in chrome and firefox, Issue with IE 10/11) :

I'm having 2 rows displayed in the grid, I click on one cell and give a tab key. This will execute change effect and make a server call and bind the grid.

Now, when the grid is bound the focus to lastly focus cell is lost. (as grid was bind with modified data).

I tried to store the focus element and refocus with below two approaches but they are having issue for IE (10/11) :

Approach 1

$("#myGrid").data('kendoGrid').editCell($("#myGrid").find('.k-grid-content tr:eq(0) td:eq(6)'));
Approach 2
$("#myGrid").find('.k-grid-content tr:eq(0) td:eq(6)').click();

 Please guide me to focus cell after grid bind, especially that can work in IE. (as above two approaches work in chrome/firefox).

 

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 08 Jun 2015, 10:37 AM
Hi Arpan,

I tried reproducing the described behavior using our Grid editing demo, but everything worked as expected. Would you please share more details about the browser used and share some code snippets or a Dojo example where this occurs?

Regards,
Alexander Popov
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
Arpan
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or