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

Telerik.WinControls.UI.BaseListViewVisualItem Class

1 Answer 141 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Sam
Top achievements
Rank 1
Sam asked on 07 Dec 2011, 04:16 AM
hi there,

i have a question about the classes that inherit form Telerik.WinControls.UI.BaseListViewVisualItem.

What are the differences between the following children classes:

Telerik.WinControls.UI.BaseListViewGroupVisualItem
Telerik.WinControls.UI.DetailListViewVisualItem
Telerik.WinControls.UI.IconListViewVisualItem
Telerik.WinControls.UI.SimpleListViewVisualItem

????

I ask because I have a RadListView where i want to add records/rows that contain Microsoft user controls.  so on that note, which class should be best used for this?

Thank you

1 Answer, 1 is accepted

Sort by
0
Ivan Todorov
Telerik team
answered on 08 Dec 2011, 04:14 PM
Hi Sam,

Thank you for your question.

These classes represent the visual items in the different view modes of RadListView. BaseListViewVisualItem is the base class for all visual items. SimpleListViewVisualItem is the visual item used in SimpleView, IconListViewVisualItem is the one used in IconView and DetailListViewVisualItem is the one used in DetailView.

If you want to use custom items, then you should inherit from one of the SimpleListViewVisualItem, IconListViewVisualItem or DetailListViewVisualItem, depending on which view mode are you going to use. More information on how to achieve this can be found in this help article. If you want to add user controls, then you should add a RadHostItem to the visual item's children, however, this is not a supported scenario and might cause some problems.

A bit off-topic, I would like to remind you about the question regarding your license, that we have asked you in a thread named "RadSelectedNodesCollection not available in Telerik WinForm". Answering it will allow us to continue supporting your enquries.

I hope you find this information useful.

Kind regards,
Ivan Todorov
the Telerik team

Q3’11 of RadControls for WinForms is available for download (see what's new). Get it today.

Tags
ListView
Asked by
Sam
Top achievements
Rank 1
Answers by
Ivan Todorov
Telerik team
Share this question
or