Posted 28 August 2024, 8:15 pm EST - Updated 28 August 2024, 8:16 pm EST
Hi,
If you look at the attached source, I added CheckListBehavior,
but the column is too wide, so I want to reduce the width.
Is there a way to changed it to the size I want?
Forums Home / ComponentOne / Blazor Edition
Posted by: soraroid on 28 August 2024, 8:15 pm EST
Posted 28 August 2024, 8:15 pm EST - Updated 28 August 2024, 8:16 pm EST
Hi,
If you look at the attached source, I added CheckListBehavior,
but the column is too wide, so I want to reduce the width.
Is there a way to changed it to the size I want?
Posted 29 August 2024, 12:20 am EST
Hi,
You could use the following code inside the “OnAfterRenderAsync” method to set the width of the CheckBox.
if(grid != null)
{
    grid.Columns["Selected"].Width = 30;
}
Kindly refer to the attached sample that demonstrates the same.
Regards,
Ankit