Completed
Last Updated: 08 Oct 2014 14:30 by ADMIN
ADMIN
Dess | Tech Support Engineer, Sr.
Created on: 08 Aug 2014 07:51
Category: ListView, CardView and CheckedListBox
Type: Bug Report
1
FIX. RadListView - Images are not displayed in DetailsView using the VisualItemFormatting and the CellFormatting events
To reproduce: follow the approach demonstrated in ListView >> Getting started help article http://www.telerik.com/help/winforms/listview-getting-started.html . When you change to DetailsView no image is displayed in the first column next to the cell's text. All previous versions (previous than 2014.2 715) shows an image in the first cell.

Workaround: use the RadListView.CellFormatting event and set CellElement.Image property for the cells in the first column.

private void radListView1_CellFormatting(object sender, ListViewCellFormattingEventArgs e)
{
    DetailListViewDataCellElement cell = e.CellElement as DetailListViewDataCellElement;
    if (cell != null)
    {
        e.CellElement.Image = cell.Row.Image;
        
    }
}
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments