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

Get Item from Double Click Event on TreeView

2 Answers 379 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 18 Jul 2019, 02:43 AM

Hey all,

I've been playing with your Blazor components and I need some help with your new TreeView.  My objective is to choose an item in the treeview (i.e. double click the item or drag and drop) and then populate a grid with the chosen item.  This is probably easy but I'm stuck.  You have an OnExpand event on the tree but nothing else.  Does anyone have an example or idea on how I could do this please?

 

Thanks,

Jimmy

2 Answers, 1 is accepted

Sort by
0
James
Top achievements
Rank 1
answered on 18 Jul 2019, 04:22 AM

Hi All,

Well, I answered my own question.  With a little more digging I ran across a thread caller "Row click and double click events".  Andriy post on his solution for click is awesome.  So with a little adjustment I got it working for double click.

https://www.telerik.com/forums/row-click-and-double-click-events#PQpO8DcbzkCArF3UqoLcWA

Cheers,

Jimmy

0
Marin Bratanov
Telerik team
answered on 18 Jul 2019, 01:29 PM
Hello Jimmy,

Indeed, this is the approach for now. We are still not certain if such DOM events are to be exposed by the component or through a template, yet you may want to Follow the feature request page to get notifications on any updates: https://feedback.telerik.com/blazor/1418731-node-click-event. I've already added your vote for the feature.


Regards,
Marin Bratanov
Progress Telerik UI for Blazor
Tags
TreeView
Asked by
James
Top achievements
Rank 1
Answers by
James
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or