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

Assigning images to specific columns

1 Answer 164 Views
ListView
This is a migrated thread and some comments may be shown as answers.
kogite
Top achievements
Rank 1
kogite asked on 13 Nov 2014, 09:36 AM
Hi,

I am at a loss of how to add images to specific columns in listview from an imagelist. 

For  example in the following column structure  :    Column A, Column B, Column C
I would like to populate "Column A" with a string, "Column B" with an image from my imagelist, "Column C" with a string.

I am not sure if this is possible, could anyone provide me with an example of how to achieve this ?

Many thanks in advance !

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 17 Nov 2014, 05:00 PM
Hello,

Thank you for writing.

Please refer to the attached sample project demonstrating how to display images in the first RadListView's column using a ImageList. Note that this approach is applicable for displaying images only for the first column in the RadListView. If your requirement is to display images in other columns, it is suitable to use the CellFormatting event and set CellElement.Image property for the cells. Our ListView >> Formatting Items help article is quite useful on this topic.

I hope this information helps. If you have any additional questions, please let me know.
 
Regards,
Desislava
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
ListView
Asked by
kogite
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or