Completed
Last Updated: 05 Aug 2014 10:50 by ADMIN
ADMIN
Dess | Tech Support Engineer, Sr.
Created on: 28 Jul 2014 13:01
Category: ListView, CardView and CheckedListBox
Type: Bug Report
0
FIX. RadListView - ListViewDetailColumn.Visible property does not affect the column until refresh is performed
To reproduce: use the following code snippet:
this.radListView1.ViewType = ListViewType.DetailsView;

ListViewDetailColumn col1 = new ListViewDetailColumn("Column0");
this.radListView1.Columns.Add(col1);
ListViewDetailColumn col2 = new ListViewDetailColumn("Column1");
this.radListView1.Columns.Add(col2);

for (int i = 0; i < 3; i++)
{
    ListViewDataItem item = new ListViewDataItem();
    radListView1.Items.Add(item);

    item[0] = "data." + i + ".0";
    item[1] = "data." + i + ".1";
}

On a RadButton.Click event set the ListViewDetailColumn.Visible property to false for some of the columns. As a result, the column is still visible. If you click over a cell, belonging to it, NullReferenceException is thrown.

Workaround: wrap setting the ListViewDetailColumn.Visible property to false in a BeginUpdate/EndUpdate block.
 
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments