Comments: ** Comment from web user: Galead **
Hi, I've solved this issue.
We have inherited class that sets Text property based on selected items count.
I've added empty OnTextChanged() override to fix disabled checkboxes issue.
It seems that since v2.7 CheckComboBox wants to parse Text property on each property update and to set checkboxes accordingly, but this fails in case of custom text.
public class CountingCheckComboBox: CheckComboBox
{
public CountingCheckComboBox()
{
this.UpdateText();
}
// Added this method to fix the issue //
protected override void OnTextChanged(string oldValue, string newValue)
{
}
//////////////////////////////////////////
protected override void OnSelectedValueChanged(string oldValue, string newValue)
{
this.UpdateText();
}
private void UpdateText()
{
this.Text = string.Format("Items selected: {0}", this.SelectedItems.Count);
}
}