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

[Solved] e.row.cells[0].innerHTML client event dosn't work on IE8

0 Answers 49 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ronald
Top achievements
Rank 1
Ronald asked on 22 Aug 2011, 02:14 AM
Hi,

On this page, http://demos.telerik.com/aspnet-mvc/grid/selectionclientside, you explain how to select the cell content of a selected row with the following code:

function onRowSelected(e) {
       
var ordersGrid = $('#Orders').data('tGrid');
        customerID
= e.row.cells[0].innerHTML;
       
// update ui text
        $
('#customerID').text(customerID);
       
// rebind the related grid
        ordersGrid
.rebind({
            customerID
: customerID
       
});
   
}

But this code doesn't work on IE8. After some research, I found, that to make it work you must change
this
customerID = e.row.cells[0].innerHTML;
with
var customerID = e.row.cells[0].innerHTML;

Tags
General Discussions
Asked by
Ronald
Top achievements
Rank 1
Share this question
or