Hi Thanvir,
You need to override the OnLayout method of the renderer class to set the proper button bounds. In the method, the required position and size can be specified to draw the button in the required size inside the cell. Here is a little sample that puts two elipsis buttons in that covers a gridcell using that override.
protected override Rectangle OnLayout(int rowIndex, int colIndex, GridStyleInfo style, Rectangle innerBounds, Rectangle[] buttonsBounds)
{
TraceUtil.TraceCurrentMethodInfo(rowIndex, colIndex, style, innerBounds, buttonsBounds);
this.Model.ButtonBarSize =new Size(innerBounds.Width,innerBounds.Height);
Rectangle rect = GridUtil.CenterInRect(innerBounds, this.Model.ButtonBarSize);
int width = rect.Width / 2;
buttonsBounds[0] = new Rectangle(rect.X, rect.Y, width, rect.Height);
buttonsBounds[1] = new Rectangle(rect.X + width , rect.Y, width, rect.Height);
return innerBounds;
}
Please refer the attached sample for implementation and let me know if this helps.
ResizeTowButton.zipBest regards,
Haneef