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

Set Paging as i want

2 Answers 67 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Yoni
Top achievements
Rank 1
Yoni asked on 24 May 2011, 02:54 PM

Hello,

I have 2 questions:
1) I have paging in my grid(Attached:CurrentPaging), and dont want the whole pager, i want only part of it (Attached:wantedPaging)
How do i do that?
2) at the paging, the prev,next,home and end buttons are arrows
How can i write text(Attached:PrevNextPaging)?

thanks,
yoni

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 25 May 2011, 07:35 AM
Hello Yoni,
 In order to achieve your first requirement, hide the ComboBox by accessing the GridPagerItem in the ItemCreated event like below.
C#:
protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
 {
   if (e.Item is GridPagerItem)
   {
          RadComboBox combobox = (RadComboBox)e.Item.FindControl("PageSizeComboBox");
      combobox.Visible = false;
   }
}

For second requirement check the following help documentation which explains setting appearance of the pager item.
Customizing the pager.

Thanks,
Princy.
0
Yoni
Top achievements
Rank 1
answered on 25 May 2011, 10:54 AM

Thanks,

but can i do this without using PagerTemplate?
i just want to change the arrows to text.
i don't want to custom the whole pager because i want the NumericPages .

p.s. How can i change the align of the pager so the text of number of item will be at the right side
and the rest will be at the left side (switch them)

Tags
Grid
Asked by
Yoni
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Yoni
Top achievements
Rank 1
Share this question
or