Hello, Julian,
Thank you for reporting this.
You can use the following workaround until the fix is available:
public class CustomCheckBoxHeaderCellElement : GridCheckBoxHeaderCellElement
{
public CustomCheckBoxHeaderCellElement(GridViewColumn column, GridRowElement row) : base(column, row)
{
}
protected override void SetTwoStateCheckBoxState()
{
List<GridViewRowInfo> rows = new List<GridViewRowInfo>();
MethodInfo mi = typeof(GridCheckBoxHeaderCellElement).GetTypeInfo().GetMethod("GetRowsToIterateOver", BindingFlags.Instance | BindingFlags.NonPublic);
rows = mi.Invoke(this, null) as List<GridViewRowInfo>;
bool? foundChecked = null;
bool? foundUnchecked = null;
bool? foundIndeterminate = null;
bool isStateEvaluated = this.EvaluateCheckBoxState(rows, ref foundChecked, ref foundUnchecked, ref foundIndeterminate);
if (!isStateEvaluated)
{
if (foundChecked.HasValue && !foundUnchecked.HasValue && !foundIndeterminate.HasValue)
{
this.SetCheckBoxState(ToggleState.On);
}
else
{
this.SetCheckBoxState(ToggleState.Off);
}
}
}
}
Regards,
Nadya | Tech Support Engineer
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.