Unplanned
Last Updated: 29 Mar 2016 11:06 by ADMIN
ADMIN
Hristo
Created on: 08 Jul 2015 13:02
Category:
Type: Bug Report
1
FIX. RadCheckedDropDownList - visual items with "&" in their Text property are displayed with _ even though UseMnemonic is set to false
How to reproduce: 

public Form1()
{
    InitializeComponent();

    new RadControlSpyForm().Show();

    for (int i = 0; i < 2; i++)
    {
        this.radCheckedDropDownList1.Items.Add("Item &" + i);
    }

    this.radCheckedDropDownList1.VisualListItemFormatting += radCheckedDropDownList1_VisualListItemFormatting;
}



Workaround:

private void radCheckedDropDownList1_VisualListItemFormatting(object sender, VisualItemFormattingEventArgs args)
{
    RadCheckedListVisualItem item = args.VisualItem as RadCheckedListVisualItem;
    RadLabelElement lbl = item.FindDescendant<RadLabelElement>();
    lbl.UseMnemonic = false;
}

0 comments