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

[Solved] Page Size control width in IE7

3 Answers 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brett Robichaud
Top achievements
Rank 1
Brett Robichaud asked on 07 Apr 2009, 09:24 PM
I'm using the latest Grid and am loving the new Page Size control in the pager. However I have noticed a problem in IE7 where something causes the droplist control to become scrollable. I have not yet figured out what causes it, but it may be changing pages or the page size or some combination.  I have screenshots of what it looks like but just realized I can't upload a picture in this posting.

3 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 08 Apr 2009, 06:02 AM
Hi Brett,

One suggestion to remove the ScrollBar for PageSize ComboBox will be to access the ComboBox in the code behind and set suitable height and width for the combbox so that the scrolling will be removed.

CS:
 
 protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e) 
    { 
        if (e.Item is GridPagerItem) 
        { 
            GridPagerItem pager = (GridPagerItem)e.Item; 
            RadComboBox PageSizeComboBox = (RadComboBox)pager.FindControl("PageSizeComboBox"); 
            PageSizeComboBox.Height = Unit.Pixel(100); 
            PageSizeComboBox.Width = Unit.Pixel(50); 
        } 
    } 


Thanks
Shinu.
0
Brett Robichaud
Top achievements
Rank 1
answered on 08 Apr 2009, 02:35 PM
This does seem to rectify the problem, although I had to go larger than 50px. However I hate spreadhing this code snippet or calls to it throughout my codebase wherever I use Grids. Can I assume this will be fixed in a future release?
0
Dimo
Telerik team
answered on 09 Apr 2009, 06:00 AM
Hello Brett,

The issue has been fixed and changes will take effect in our next service pack and nightly build.

Greetings,
Dimo
the Telerik team

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