This is a migrated thread and some comments may be shown as answers.

Expanding GridButtonColumn Width

1 Answer 186 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 10 May 2016, 08:55 PM

Hello, I can't figure out how to set (expand) the GridButtonColumn text for my subgrid. It seems locked into the width of the default edit pencil icon for subgrids, but I've entered the text "Click to Begin" in this column instead.

I've tried HeaderStyle-Width with no affect, and ItemStyle-Width, which threw an error as an un-unknown attribute. Any help would be much appreciated!

Here's the template snippet:

<telerik:GridButtonColumn HeaderStyle-Width="250px" UniqueName="btnEdit" ButtonType="LinkButton" Text="<strong>Click to Begin</strong>" CommandName="Edit" />

I've attached a screenshot of my subgrid below.

1 Answer, 1 is accepted

Sort by
0
Chris
Top achievements
Rank 1
answered on 12 May 2016, 06:33 PM

Some CSS on the page fixed this:

.rgMasterTable colgroup col:first-of-type,<br>.rgRow td:first-of-type,<br>.rgAltRow td:first-of-type{<br>                width: 125px!important;<br>}

Tags
Grid
Asked by
Chris
Top achievements
Rank 1
Answers by
Chris
Top achievements
Rank 1
Share this question
or