This is a migrated thread and some comments may be shown as answers.
Command Button Width
1 Answer 50 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Paul Smrz
Top achievements
Rank 1
Paul Smrz asked on 03 Nov 2010, 05:49 PM
Hi,

I'm using text type command buttons in a grid, and would like to set the width of each one.  They are both in a single column.

I've tried adding HtmlAttributes with a style stating the width, but this was ignored.

Are there new features for Q3 release to make this easier?

Thanks,

Paul

1 Answer, 1 is accepted

Sort by
0
rino
Top achievements
Rank 1
answered on 24 Dec 2010, 04:21 AM

If you want smaller buttons, you should also set the min-width.

ButtonType(GridButtonType.Text).HtmlAttributes(new {style = "width: 20px; min-width: 20px;"});

By default, CSS class t-grid-action is setting the width to 57px.
Tags
Grid
Asked by
Paul Smrz
Top achievements
Rank 1
Answers by
rino
Top achievements
Rank 1
Share this question
or