Is it possible to change the behavior of the checkboxes inside RadPivotFieldList so that the first underscore of the label is visible? I cannot find a way without retemplating the whole control. The text actually is UID_BNK - bank code, but the underscore is swallowed by the checkbox.
Kind regards,
Gian Paolo
4 Answers, 1 is accepted
Hello Gianpaolo,
Thank you for the provided image.
The underscores in a CheckBox control are used for key access. More information about this can be found in the following article: Missing Underscore with Label or CheckBox.
What I can suggest to correctly display it would be to iterate over all checkboxes in the loaded event of the RadPivotFieldList and escape the underscore, like so:
private void radPivotFieldList_Loaded(object sender, RoutedEventArgs e)
{
var list = sender as RadPivotFieldList;
var checkBoxes = list.ChildrenOfType<CheckBox>();
foreach (var checkBox in checkBoxes)
{
checkBox.Content = checkBox.Content.ToString().Replace("_", "__");
}
}
Regards,
Dilyan Traykov
Progress Telerik
Hello Gianpaolo,
Do let me know how this goes. I will be awaiting your reply.
Regards,
Dilyan Traykov
Progress Telerik