6 Answers, 1 is accepted
http://www.telerik.com/help/radcontrols/prometheus/grdSettingFilterTextBoxDimensions.html
Here is another link that you will find helpfull.
http://www.telerik.com/help/aspnet/grid/?grdCustomizingFilteringMenu.html
Thanks,
Shinu
The problem is all my columns in the grid have a filter box.
All the columns are of different length.If i set the width of filter box in css all the filter boxes will use that width.
I want that the filter box should be of the same length as the column.
Any ideas?
The Grid automatically adjusts the filtering text box according to the column width. Here is an example with auto layout Grid table and enabled filtering:
http://www.telerik.com/demos/aspnet/prometheus/Grid/Examples/GeneralFeatures/Filtering/DefaultCS.aspx
The help article links posted below explain the options of modifying the filtering menu according to any specific requirements.
Best wishes,
Konstantin Petkov
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Thanks for the post.
The grid adjusts the filer width for the columns automatically.
But I have two columns where I am specifying the width and the filer box for those cloumns is not getting adjusted.
Please suggest.
Below is how I have specified the columns in my grid:
<
telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="Roadway" FilterListOptions="VaryByDataType" ForceExtractValue="None" HeaderText="Roadway" SortExpression="Roadway" UniqueName="Roadway"ItemStyle-Wrap="false" >
</telerik:GridBoundColumn>
<telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="LastInspectionDate" FilterListOptions="VaryByDataType" ForceExtractValue="None" HeaderText="Last Inspection Date" SortExpression="LastInspectionDate" UniqueName="LastInspectionDate" ItemStyle-Wrap="false" DataFormatString="{0:MM/dd/yy}" ItemStyle-Width="100px" HeaderStyle-Width="100px">
</telerik:GridBoundColumn>
Here is the other approach you can follow:
http://www.telerik.com/community/forums/thread/b311D-bdkcea.aspx
Greetings,
Konstantin Petkov
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center