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

Two Pager Templates in RadGrid

2 Answers 91 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vinay
Top achievements
Rank 1
Vinay asked on 08 Jul 2011, 02:38 PM
Hi All,

I want to use two Pager Templates in my rad grid with some different controls say Template at the top works for the paging and sorting and the Pager at the bottom contains the drop down for controlling records per page. Is it possible in radGrid to use Pager Templates like this having different controls inside it?

Thanks in Advance.


  

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 11 Jul 2011, 07:03 AM
Hello Vinay,

You can define one PagerTemplate and set the visibility of the controls based on the position. To determine whether the pager item is displayed in the header or footer of the grid, check the NamingContainer for the GridPagerItem object (it will be GridTHead for the header and GridTFoot for the footer).

Check out the following help article for more on this.
Displaying different controls in a PagerTemplate based on position.

Thanks,
Shinu.
0
Vinay
Top achievements
Rank 1
answered on 11 Jul 2011, 09:36 AM
:)

 Thanks a ton Shinu. It worked for me. And the solution was very simple.
Tags
General Discussions
Asked by
Vinay
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Vinay
Top achievements
Rank 1
Share this question
or