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

element.closest('kendo-grid').getKendoGrid() is undefined

1 Answer 105 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nilesh
Top achievements
Rank 1
Nilesh asked on 12 May 2015, 10:28 AM

Hi There,

 

I am trying to get reference of the kendo-grid and then want to get the current dataItem, but followng code fails cause the 

element.closest('kendo-grid').getKendoGrid()

returns undefined. Can anyone help me out as I am not able to find the correct answer anywhere.

 

Thank You,

Nilesh 

1 Answer, 1 is accepted

Sort by
0
Accepted
Alexander Valchev
Telerik team
answered on 14 May 2015, 07:21 AM
Hi Nilesh,

I suppose you develop an AngularJS application. In that case please use this approach to get reference of the Kendo UI widget.

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