Completed
Last Updated: 13 Oct 2015 08:56 by ADMIN
ADMIN
Dimitar
Created on: 11 Feb 2015 09:17
Category: GridView
Type: Bug Report
0
FIX. RadGridView - a column cannot be resized when the MaxWidth property is set to a specific value and then it is set back to 0.
To reproduce:
- Add some columns to a grid.
- Then add a column like this:
private void button2_Click(object sender, System.EventArgs e)
{
    radGridView1.AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode.Fill;
    Telerik.WinControls.UI.GridViewDataColumn gridViewColumn2 = new Telerik.WinControls.UI.GridViewCheckBoxColumn();
    gridViewColumn2.MinWidth = gridViewColumn2.MaxWidth = 22;
    gridViewColumn2.Width = 100;
   radGridView1.MasterTemplate.Columns.Add(gridViewColumn2);

    gridViewColumn2.MinWidth = 0;
    gridViewColumn2.MaxWidth = 0;

}

Please note that if you add two columns with the above code, you will be able to resize the first one, but  the cursor position is in wrong position.


Workaround:
- Set the MaxWidth before adding the column to the grid. 
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments