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

[Solved] getColumnUniqueNameByCellIndex

1 Answer 121 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Oziem
Top achievements
Rank 2
Oziem asked on 04 Feb 2008, 02:21 PM
Hi,

Are there any known issues with the getColumnUniqueNameByCellIndex method? If I use the example in the documentation :  

var masterTable = $find("<%=RadGrid1.ClientID%>").get_masterTableView();  
var contactName = masterTable.getColumnUniqueNameByCellIndex(
                    masterTable.get_dataItems()[0], 2); 

I get the error message " 'cells.length' is null or not an object ".  I'm using the latest build of Prometheus (RadControls_Prometheus_2007_3_1314).

Thanks

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 05 Feb 2008, 04:25 PM
Hi Oziem,


Indeed, it seems there is an issue with this method. It will work for the header item only. Currently you can use it this way:

var masterTable = $find("<%=RadGrid1.ClientID%>").get_masterTableView(); 
var name = masterTable.getColumnUniqueNameByCellIndex(masterTable.HeaderRow, 2);
alert(name);

Hope this helps.


Kind regards,
Ves
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Oziem
Top achievements
Rank 2
Answers by
Ves
Telerik team
Share this question
or