AD
Administrator
Syncfusion Team
February 2, 2007 06:05 PM UTC
Hi Kyle,
You should override the OnQueryPrefferedClientSize method in ButtonEditCellModel and return the size of the cell based on the ButtonBarSize of the ButtonEdit cell. Please try this and let me know if this helps.
protected override Size OnQueryPrefferedClientSize(Graphics g, int rowIndex, int colIndex, GridStyleInfo style, GridQueryBounds GridQueryBounds)
{
Size size = base.OnQueryPrefferedClientSize(g, rowIndex, colIndex, style, GridQueryBounds);
return new Size(size.Width + 20, size.Height); // base method already consides ButtonBarSize, but let's add some more pixels here.
}
Thank you very much for your interest in Syncfusion’s products.
Best regards,
Haneef
KD
Kyle DeVoe
February 2, 2007 07:11 PM UTC
Haneef,
that works great. Thanks! The code was already there, it was just commented out. Not sure why.
thanks,
Kyle
>Hi Kyle,
You should override the OnQueryPrefferedClientSize method in ButtonEditCellModel and return the size of the cell based on the ButtonBarSize of the ButtonEdit cell. Please try this and let me know if this helps.
protected override Size OnQueryPrefferedClientSize(Graphics g, int rowIndex, int colIndex, GridStyleInfo style, GridQueryBounds GridQueryBounds)
{
Size size = base.OnQueryPrefferedClientSize(g, rowIndex, colIndex, style, GridQueryBounds);
return new Size(size.Width + 20, size.Height); // base method already consides ButtonBarSize, but let's add some more pixels here.
}
Thank you very much for your interest in Syncfusion’s products.
Best regards,
Haneef