TapItem in TreeView

1 Answer 95 Views
Accessibility Expander TabView TreeView
Menna
Top achievements
Rank 1
Menna asked on 09 Dec 2021, 02:56 PM

I want to make Command when tapped on item in tree view but this stopped Collapse / Expand behavior on tree View

 

Any help ?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 09 Dec 2021, 05:26 PM

Hi Menna,

Example how to achieve this scenario can be found in our help article here: https://docs.telerik.com/devtools/xamarin/knowledge-base/treeview-expand-collapse-item-when-tapping-on-indicator 

The article explains how to expand collapse treeview items using only the arrow. So when tapping on the item, it won't expand/collapse. 

Regards,
Didi
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/.

Menna
Top achievements
Rank 1
commented on 12 Dec 2021, 08:59 AM

thank you for replay , 

I'm already did this solution but i faced issue on third level for example when Collapsed one item it's expand all children in the same level

 

Menna
Top achievements
Rank 1
commented on 12 Dec 2021, 03:26 PM

@Didi and i want to make the tap action on all node not on the arrow icon only 
Didi
Telerik team
commented on 15 Dec 2021, 07:02 AM

Hi Menna,

From the first message: I want to make Command when tapped on item in tree view but this stopped Collapse / Expand behavior on tree View. I understood you want to prevent the item to be expanded collapsed when tapping on the tree view item, the expand/collapsed state to be triggered when tapping on the arrow. The article here explains how to achieve this scenario:  https://docs.telerik.com/devtools/xamarin/knowledge-base/treeview-expand-collapse-item-when-tapping-on-indicator 

Regarding this: I'm already did this solution but i faced issue on third level for example when Collapsed one item it's expand all children in the same level - I cannot reproduce this behavior on my side. YOu can send the code for the custom implementation so I can test it on my side. Note that in the forum only image attachments and code snippets are allowed. If you want to send a project, then open a support ticket. 

 
Tags
Accessibility Expander TabView TreeView
Asked by
Menna
Top achievements
Rank 1
Answers by
Didi
Telerik team
Share this question
or