Completed
Last Updated: 31 Aug 2018 08:08 by Dimitar
ADMIN
Dimitar
Created on: 30 Aug 2018 06:53
Category: GridView
Type: Bug Report
0
FIX. RadGridView - the WrapText property is not respected when the header checkbox is enabled
To reproduce:
GridViewCheckBoxColumn chkCol = new GridViewCheckBoxColumn();

chkCol.HeaderText = "I have wrap text set yet I cannot see full column header text.";
chkCol.Width = 90;
chkCol.WrapText = true;
chkCol.EnableHeaderCheckBox = true;
chkCol.EditMode = EditMode.OnValueChange;
radGridView1.Columns.Add(chkCol);

Workaround:
private void RadGridView1_ViewCellFormatting(object sender, CellFormattingEventArgs e)
{
    var cell = e.CellElement as GridCheckBoxHeaderCellElement;
    if (cell != null)
    {
        cell.CheckBox.TextWrap = true;
    }
}
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments