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

[Solved] Paging Dropdown Height

1 Answer 123 Views
Grid
This is a migrated thread and some comments may be shown as answers.
KO
Top achievements
Rank 1
KO asked on 12 Apr 2013, 08:55 PM
So I have pretty strange issue with the paging control of one of my grids. It will almost always be at the bottom of their screen, but for some reason when the page is built, and the relative radgrid IS at the lowest visible element, the dropdown would not expand up instead of down. So I followed another post I found on here to do this:

protected void UploadReportGrid_ItemCreated(object sender, GridItemEventArgs e)
        {
            // there is an issue with the paging RadComboBox drop down direction in the uploaded reports grid.
            // it apparently cannot determine that it is at the bottom of the screen like normal so we make
            // the drop down expand up hard coded.
            if (e.Item is GridPagerItem)
            {
                GridPagerItem pagerItem = e.Item as GridPagerItem;
                RadComboBox combo = pagerItem.FindControl("PageSizeComboBox") as RadComboBox;
                combo.EnableScreenBoundaryDetection = false;
                combo.ExpandDirection = RadComboBoxExpandDirection.Up;
                combo.DropDownCssClass = "UploadReportGrid_PagerDropDown";
            }
        }

This seemed to work, but then the dropdown height was 0, with only its borders rendering above the clickable area of the paging control. So then I used my little CssClass and wrote:

div.UploadReportGrid_PagerDropDown .rcbScroll {
    height: auto !important;
}

This seemed to do the trick, but the height is still rendering at 0 pixels in ie8, and I am assuming for ie7 also. I need to get this to work for both IE7 and IE8. The attached screenshot is IE8. Thats also what it looked like in modern browsers before the CssRule took affect, but doesn't seem to work for IE7 and 8.

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 17 Apr 2013, 12:33 PM
Hello Kelson,

I am afraid we are not able to replicate the issue locally. By default, the dropdown should open towards up direction when it will go beyond the screen borders when opened below. Can you please provide us the exact steps to reproduce the issue or open a support ticket to send us a sample runnable application demonstrating the erratic behavior. Thus, we will be able to further analyze the problem and provide a proper solution.

Greetings,
Eyup
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
KO
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or