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

Change width of filter input box

2 Answers 40 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bill
Top achievements
Rank 1
Bill asked on 17 Oct 2011, 10:14 PM
I have a column called state which is a two digit state abbreviation.  The filter box is taking up what seems to be around 100 pixels, which is too long, how can I reduce the width of the filter boxes?

http://www.photoshop.com/users/tehprince/albums/263f22872b8e4870baebd04ec212f76f/view#2ccdab3e252a43ce823b269b30dd63d2

I've tried "columnname.FilterColumnWidth = Unit.Pixel(20);", but that doesn't re-size anything.

Any help would be most appreciated.

2 Answers, 1 is accepted

Sort by
0
Bill
Top achievements
Rank 1
answered on 17 Oct 2011, 10:20 PM
I just found the answer after I posted, sorry!

It's "columnname.HeaderStyle.Width = Unit.Pixel(20);"
0
Jayesh Goyani
Top achievements
Rank 2
answered on 18 Oct 2011, 05:56 AM
Hello,

You can also used FilterControlWidth Property.
<telerik:GridTemplateColumn FilterControlWidth="50px" />

Thanks,
Jayesh Goyani
Tags
Grid
Asked by
Bill
Top achievements
Rank 1
Answers by
Bill
Top achievements
Rank 1
Jayesh Goyani
Top achievements
Rank 2
Share this question
or