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

"Harmonica" list view

1 Answer 46 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Jure
Top achievements
Rank 1
Jure asked on 20 Aug 2010, 08:28 AM
Hey!
I would like to have various messages posted on my site stored in a listview.
Users can post comments on those posts. Initially comments would not be displayed, but if a user clicks on a post, the listview item would expand so it would show comments also. Is this possible, or should I use another control?

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 20 Aug 2010, 12:24 PM
Hello Jure,

RadListView does not have a predefined layout with such a functionality. You can create a custom layout, but will have to take care of the expand/collapse behavior yourself.

A RadControl, which has a vertical expand/collapse behavior is RadPanelBar - use it if it suits your requirements.

http://demos.telerik.com/aspnet-ajax/panelbar/examples/functionality/panelbarbehavior/defaultcs.aspx

Another possible option is a RadTreeView with templates. The posts will be root nodes, while the comments - child nodes.

http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/templates/defaultcs.aspx

Greetings,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ListView
Asked by
Jure
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or