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

Radgrid Pager dropdown to open not down but up :)

3 Answers 120 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Em4o
Top achievements
Rank 2
Em4o asked on 13 Nov 2012, 03:10 PM
Hi,

I have some issues with Radgrid Pager, when I give it some specific height, pages is acting like a crazy, override my button view when it opens.
So is it possible when I click over radgrid pager dropdown, to open "UP" , not down? So it won't override my button below it.

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 14 Nov 2012, 06:23 AM
Hi,

Try the following code to achieve your scenario.
C#:
protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
 if (e.Item is GridPagerItem)
 {
    GridPagerItem pagerItem = (GridPagerItem)e.Item;
    RadComboBox combo = (RadComboBox)pagerItem.FindControl("PageSizeComboBox");
    combo.EnableScreenBoundaryDetection = true;
 }
}

Thanks,
Shinu.
0
Em4o
Top achievements
Rank 2
answered on 14 Nov 2012, 07:16 AM
Thanks for your answer but it doesn't help me.
How can I change this radcombobox orientation to be not down, but items to appear "up"
0
Eyup
Telerik team
answered on 16 Nov 2012, 02:56 PM
Hello Emin,

You will need to add 1 more row to the suggested approach by Shinu:
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
{
    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;
    }
}

I hope this will prove helpful. Please give it a try and let me know about the result.

Regards,
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
Em4o
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Em4o
Top achievements
Rank 2
Eyup
Telerik team
Share this question
or