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

Alter the RadFilter width according to the Grid column width

1 Answer 46 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Priya B
Top achievements
Rank 1
Priya B asked on 22 Jun 2010, 07:57 AM
I need to alter the Filtercontrol width according to the RadGrid Column width. I know how to assign the width statically by using filter column width.

I want to make this in one place for all grids. Anyone know how to get the column width after binding and need to assign the same for Filtercontrol.

Anyone has any idea?

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 22 Jun 2010, 09:11 AM
Hello Priya,

Please note RadFilter and RadGrid filtering are different things.

As explained by Princy in the forum post below, it is not possible to find out a column width on the server, unless you have explicitly set it.

http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrid-get-column-width-and-append-string-if-cell-is-empty.aspx#1240133

As for your question regarding setting FilterControlWidth (or column width) in one common place, this can be done in a similar fashion as adding the   strings - you can use a custom control inheriting from RadGrid and attach a ColumnCreated event handler in the control's contructor.

http://www.telerik.com/help/aspnet-ajax/grdusingcolumns.html

(scroll down to "Customizing columns programmatically")


Regards,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Priya B
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or