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

TreeView In LisView??

3 Answers 131 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Rahul
Top achievements
Rank 1
Rahul asked on 09 Nov 2020, 07:40 AM

Hello,
Can we list view in the form of Treeview?

For Example:

My current listview is:

A

    A

B

   B

C

   C1

   C2

I want it change to:
A

B

C
   C1
   C2

 

I know it is possible in the TreeView..but can i implement this using Radlistview??

3 Answers, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 09 Nov 2020, 09:15 AM

Hi Rahul,

Both controls TreeView and ListView have similar features still their usage is different. The TreeView displays hierarchical data structures. 

If you want to achieve the following result:

I want it change to:
A

B

C
   C1
   C2

Using ListView:
You will need to use the ListView grouping feature and expand/collapse a certain group

Using TreeView:
Note that this scenario can be achieved with the RadTreeView as well. You can expand/collapse TreeView item.

I hope the provided information was helpful. Let me know if you have any additional questions on this.

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/.

0
Rahul
Top achievements
Rank 1
answered on 09 Nov 2020, 09:40 AM

I have used grouping in the Listview. It is giving me  the following output:
A
    A
B
   B
C
   C1
   C2

Can you share me the link where the Desired functionality is achieved?

0
Didi
Telerik team
answered on 09 Nov 2020, 09:58 AM

Hi Rahul, 

I have added the links in my previous reply, I am pasting the links to this reply too: 

- Grouping in ListView: https://docs.telerik.com/devtools/xamarin/controls/listview/grouping/listview-features-grouping 

- Expand/Collapse ListView group:  https://docs.telerik.com/devtools/xamarin/controls/listview/grouping/listview-features-expand-collapse 

Here is how my previous reply looks in the Telerik forum. I took a screenshot and added the arrows, to you check where the information (that contains the links for the grouping and expand/collapse items in the listview) is:

 

 

In addition, we have ListView Grouping samples in our SDK Browser all. Here is the link to the examples: https://github.com/telerik/xamarin-forms-sdk/tree/master/XamarinSDK/SDKBrowser/SDKBrowser/Examples/ListViewControl/GroupingCategory 

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/.

Tags
ListView
Asked by
Rahul
Top achievements
Rank 1
Answers by
Didi
Telerik team
Rahul
Top achievements
Rank 1
Share this question
or