Completed
Last Updated: 21 Jan 2016 15:39 by ADMIN
ADMIN
Dimitar
Created on: 14 Aug 2013 03:46
Category: GridView
Type: Bug Report
1
FIX. RadGridView - CommandColumn button in the add new row cell is slightly larger than the cell itself
To reproduce:
- Add CommandColumn to the grid
- Observe the size of the button in the newrow row

Workaround:
- Add some padding in the cell formating event

 void radGridView1_CellFormatting(object sender, Telerik.WinControls.UI.CellFormattingEventArgs e)
        {
            GridViewNewRowInfo row = e.Row as GridViewNewRowInfo;
           
            GridCommandCellElement cell = e.CellElement as GridCommandCellElement;

            if (row != null && cell != null)
            {                
                cell.CommandButton.SetDefaultValueOverride(RadItem.MarginProperty, new System.Windows.Forms.Padding(0,0,1,0));
            }
        }
0 comments