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

Radgantt Node Selection

1 Answer 62 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
Raju
Top achievements
Rank 1
Raju asked on 08 Feb 2021, 10:41 AM

Hi Team,

How to get the selected node id using radgantt. Is there any method which can be used to get ?

Regards

 

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 09 Feb 2021, 04:14 PM

Hi Raju,

You can use the select() method of the underlying Kendo UI widget of the Gantt in order to access the data of the currently selected row:

https://docs.telerik.com/kendo-ui/api/javascript/ui/gantt/methods/select

For example:

var ganttWidget = $find("RadGantt1")._widget;
var selectedRowObj = ganttWidget .select();
var selectedRowEl = $telerik.$(selectedRow.selector)[0]
var rowUid = selectedRowEl.getAttribute("data-uid")

Regards,
Vessy
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Gantt
Asked by
Raju
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or