GantView Get Data

1 Answer 63 Views
GanttView
Marco
Top achievements
Rank 1
Iron
Marco asked on 26 Jul 2023, 04:40 PM

Hello

 

How to get the IdOperacao value from selected row?

 

Best Regards,

Marco Gaspar

 

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 29 Jul 2023, 12:46 PM

Hi Marco, 

The GanttViewElement object exposes the SelectedItem property. You can use its DataBoundItem property which holds the underneath custom object which the control is populated with. You can cast it to your object and get the desired property value. The approach depends on how the control is populated with. 

this.radGanttView1.GanttViewElement.SelectedItem.DataBoundItem

Give it a try and let me know how it goes.

Regards,
Dinko | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
GanttView
Asked by
Marco
Top achievements
Rank 1
Iron
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or