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

FilterByColumn and chrome

1 Answer 24 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 25 Oct 2012, 05:34 PM
Hi,

I have a rendering issue when allowing the FilterByColumn option (the date columns get waaay too wide). I saw that it was quite common over the forum, and that the solution was to just set a column width, but my problem is that I can't predict how many columns are going to be needed, and the width is dynamic.

Is there a solution to this problem ?

Thanks

1 Answer, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 29 Oct 2012, 04:56 PM
Hello Simon,

One solution for your problem is setting your column width run-time. When you bind your grid you could set the width of the columns. If you want all of your columns to be with an exact width you could set the HeaderStyle width of the MasterTableView like in the following code snippet:
<MasterTableView AutoGenerateColumns="False" DataSourceID="SqlDataSource1">
            <HeaderStyle  Width="30px"/>
Additionally note that if you set only some columns with a certain width other columns in the RadGrid will resize automatically.

All the best,
Angel Petrov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Simon
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Share this question
or