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

Column size, filtering and resizing

3 Answers 237 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Steve Y
Top achievements
Rank 2
Steve Y asked on 10 Sep 2008, 05:05 AM
Hi,

I have a Grid configured with about 12 columns with resizing active. I can resize the columns and reorder them with no problems.  Four of the columns are text fields of about 20 chars, one is State (TX, etc)  and the remainder are numeric and hold small numbers of 2 to 4 digits each.  I can size each of the columns to be large enough to hold their data.

The problem I'm having is when I switch on filtering, each column expands to have a filter box containing 11 chars plus the filter image etc etc.

So. I have two problems.

1. I cannot size the columns small enough anymore. Is there a way of reducing the size of a filtered column?

2. With filtering on, the grid expands wider than the screen size without giving me a scroll bar! The Grid is in a Div set to 100% and most things I put in there wider than the screen cause the horizontal scroll bars to appear. If I put a border on the div, I can see the right edge at the right of the screen with the grid extending out beyond it. Any ideas?

Thanks, Steve

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 11 Sep 2008, 07:16 AM
Hi Steven,

Here is an example, which demonstrates how to set width for the filtering textboxes:

RadGrid Filtering Demo

As for the scrollbar issue, have you set overflow:hidden for the html / body elements ? If not, please provide a live URL / sample page, so that we can see what happens.


Regards,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Steve Y
Top achievements
Rank 2
answered on 12 Sep 2008, 04:03 AM
Thanks for the tip on how to change the filtering textbox sizes. Are there any plans to have this be set from within the control/aspx instead of in code behind?

I'm still working on the other issue but I seem to be having a lot of problems caused by running on top of .net 3.5 sp1.

Steve
0
Dimo
Telerik team
answered on 12 Sep 2008, 07:39 AM
Hi Steve,

So far, we have not considered adding such a property, but we will think about it, as it will bring benefit in some scenarios.

Regards,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Steve Y
Top achievements
Rank 2
Answers by
Dimo
Telerik team
Steve Y
Top achievements
Rank 2
Share this question
or