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

[Solved] Custom paging

1 Answer 49 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ayesha
Top achievements
Rank 1
Ayesha asked on 30 Sep 2009, 04:14 AM
Hi,

We would like to have the alphabetic style for our paging style in radgrid's. But we don't want the combobox which gets displayed (with entries like 5, 10, 15). How do we get rid of this combobox in the paging style and just have the alphabets and other buttons in that paging style(minus that combobox).

Pls help us with code.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 30 Sep 2009, 07:49 AM
Hello Zaheka,

You can either hide the page size combobox dynamically:
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.Visible = false;          
 
        } 
    } 

or you can hide the pageSize label and pagesize combobox(pager advanced part) by using the following css setting:
css:
.rgPager .rgAdvPart   
     {   
       
     display:none
      
     }  

Thanks
Princy.
Tags
General Discussions
Asked by
Ayesha
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or