Completed
Last Updated: 08 Oct 2014 15:56 by ADMIN
ADMIN
Dess | Tech Support Engineer, Sr.
Created on: 28 Jul 2014 12:53
Category: ListView, CardView and CheckedListBox
Type: Bug Report
0
FIX. RadListView - Incorrect cursor after resizing columns in ListViewType.DetailsView
To reproduce: use the following code snippet:

this.radListView1.ViewType = ListViewType.DetailsView;
this.radListView1.Columns.Add("Column0");
this.radListView1.Columns.Add("Column1");

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";
}

After resizing a column, click over a data cell. You will notice that the default cursor is changed.

Workaround: use the MouseUp event:

private void radListView1_MouseUp(object sender, MouseEventArgs e)
{
    if (e.Button == System.Windows.Forms.MouseButtons.Left)
    {
        DetailListViewDataCellElement dataCell = radListView1.ElementTree.GetElementAtPoint(e.Location)as DetailListViewDataCellElement;
        if (dataCell != null)
        {
            radListView1.Cursor = Cursors.Default;
        }
    }
}
Attached Files:
0 comments