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

Javascript warning when accessing cell by name

1 Answer 13 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 21 Jul 2014, 04:13 AM
Hi, I'm using this code straight from the offline help file:

function GetFirstItemContactNameCell() {
    var masterTable = $find("<%=RadGrid1.ClientID%>").get_masterTableView();
    var contactName = masterTable.getCellByColumnUniqueName(masterTable.get_dataItems()[0], "ContactName").innerHTML;
}

And Chrome is returning the warning:

    'Attr.nodeValue' is deprecated. Please use 'value' instead.

It is still returning the text from the cell but I'm wondering what I should be using instead? We're using version 2014.2.618.40 of the controls. Thanks.

Daniel

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 23 Jul 2014, 01:50 PM
Hi Daniel,

The presented javascript is totally correct and it should be used for accessing cells on the client. It works on our end without any errors.
I suppose that the error you are facing is generated by another code on the page. Please remove the client script and verify if the error still appear.
Also please set e debugger in your java script and verify what exactly is forcing the error.

Regards,
Maria Ilieva
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Daniel
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or