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

Strange radgrid column size issue...?

4 Answers 141 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Justin
Top achievements
Rank 1
Justin asked on 16 Aug 2011, 04:05 PM
I will preface this question by saying that I have only been using telerik tools for about a week and a half, but I am having a very strange issue and have not been able to find anything online that describes my issue.  

I am using a RadGrid in one of my pages, and when I do not allow filtering everything shows up perfectly, however, as soon as I tick the 'Enable Filtering' check box, the width of one of my columns goes astronomically large.  I'm not talking a few hundred pixels, Google Chrome put it at 114,085,104px wide.  I have deleted and re-created the page, same issue.  I also tried adding the 'Enable Filtering' property to another existing page that had a radgrid, and it also happened there.  I have gone through the CSS several times to make sure it wasn't picking up something weird, but haven't found anything. 

Any advice would be greatly appreciated.

Thanks!

4 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 16 Aug 2011, 04:49 PM
Hi Justin,

To resolve the problem you can try setting FilterControlWidth property of the grid columns to some pixel value, as in the following demo:

http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/filtering/defaultcs.aspx

The problem is caused by incorrect browser behavior.

Regards,
Pavlina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Justin
Top achievements
Rank 1
answered on 16 Aug 2011, 05:53 PM
I tried your suggestion, I still have the same issue.  I even tried looping through all the columns and setting the FilterControlWidth property to 1px wide.  It did not seem to adjust the width of any of the columns.
0
Justin
Top achievements
Rank 1
answered on 16 Aug 2011, 06:45 PM
I did some more digging.  My issue occurs in Google Chrome but not in IE9.  The column is a DateTime.
0
Jayesh Goyani
Top achievements
Rank 2
answered on 16 Aug 2011, 07:49 PM
Hello,

Please set filter control's width as shown in below code.

<telerik:GridDateTimeColumn  FilterControlWidth="120px">                            </telerik:GridDateTimeColumn>


Please provide your code if you not solve your issue.

Thanks,
Jayesh Goyani
Tags
Grid
Asked by
Justin
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Justin
Top achievements
Rank 1
Jayesh Goyani
Top achievements
Rank 2
Share this question
or