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

Default filter popup issue

1 Answer 44 Views
GridView
This is a migrated thread and some comments may be shown as answers.
mishta
Top achievements
Rank 1
mishta asked on 19 Mar 2010, 09:46 PM
I'm finding that with the default filter window for columns dynamically changes it's width as I scroll down the selection options.
Is there a way to force it to be a certain width or not do this at all?  Maybe horizontally scroll the list or something else? 

Without this, it will just not be usable have it dramatically changing width values back and forth as you scroll.

Thanks for any help!

Matt

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 22 Mar 2010, 02:27 PM
Hi mishta,

There is a very easy way to overcome this. Create an instance of our default filtering control, fix its width and assign it as the filtering control of all columns (or the ones that you think might need this). Here is how to do it:

FilteringControl myCustomizedFilteringControl = new FilteringControl();
myCustomizedFilteringControl.MaxWidth = 240;
myCustomizedFilteringControl.MinWidth = 240;
((GridViewBoundColumnBase)this.clubsGrid.Columns[0]).FilteringControl = myCustomizedFilteringControl;

I have attached a sample project. I hope this helps.

Best wishes,
Ross
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
GridView
Asked by
mishta
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or