Completed
Last Updated: 23 Feb 2016 07:55 by ADMIN
ADMIN
Dimitar
Created on: 09 Feb 2016 11:28
Category: ListView, CardView and CheckedListBox
Type: Bug Report
0
FIX. RadCheckedListBox, RadListView - CheckBoxesAlignment does not work in DetailsView.
To reproduce:
- set the alignment like this:
radCheckedListBox1.CheckBoxesPosition = Telerik.WinControls.UI.CheckBoxesPosition.Top;
radCheckedListBox1.CheckBoxesAlignment = Telerik.WinControls.UI.CheckBoxesAlignment.Near;

Workaround:
void radListView1_VisualItemFormatting(object sender, ListViewVisualItemEventArgs e)
{
    DetailListViewVisualItem item = e.VisualItem as DetailListViewVisualItem;
    if (item != null)
    {
        var checkBox = item.Children[0] as ListViewItemCheckbox;
        checkBox.PositionOffset = new SizeF(0, - (radCheckedListBox1.ItemSize.Height /2 - checkBox.Size.Height/2));
    }
}
0 comments