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

How to set grid id in javascript

2 Answers 89 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 30 Jun 2015, 07:42 AM

Hi. There.
I have set up several nested grid in my application with the hierarchy grid example.
Grid
   Nest Grid 1
      Nest Grid 2
         Nest Grid 3

Both my Nest Grid 2 and Nest Grid 3 are dynamic bind in the detailInit events of grid options.
So is there a way to set Nest Grid 2 and Nest Grid 3's Id in javascript so that I can use that Id as my selector later on?
Thx in advance.

2 Answers, 1 is accepted

Sort by
0
Accepted
Ryan
Top achievements
Rank 1
answered on 30 Jun 2015, 01:58 PM

Set a grid ID that will be unique based on a unique identifier of the row it corresponds to. For example, http://dojo.telerik.com/evImu

Here I set the grid id to nested-grid-ID where ID is the employee ID of the row it corresponds to.

0
Peter
Top achievements
Rank 1
answered on 01 Jul 2015, 02:45 AM
Thx. Tat is exactly what i want.
Tags
Grid
Asked by
Peter
Top achievements
Rank 1
Answers by
Ryan
Top achievements
Rank 1
Peter
Top achievements
Rank 1
Share this question
or