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

Pager Out Of Grid

5 Answers 29 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Javad Davari
Top achievements
Rank 1
Javad Davari asked on 06 Oct 2008, 12:47 PM
Hello All
Can i place pager out of the rad grid ?

if yes , please guide me

All the best
Davari

5 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 06 Oct 2008, 01:15 PM
Hi,

 A suggestion  would be to  implement paging outside the grid as shown below:
On a button click you can change the page index of the grid based on a textbox value:

RadGrid1.MasterTableView.CurrentPageIndex=1;
RadGrid1.Rebind();

Thanks,
Princy
0
Javad Davari
Top achievements
Rank 1
answered on 07 Oct 2008, 11:59 AM
Hello Princy
Thanks for your reply

now i want access to radgrid current page and page count property

in telerik custom pager use from
aspx
<asp:TextBox ID="tbPageNumber" runat="server" Columns="3" Text='<%# (int)DataBinder.Eval(Container, "OwnerTableView.CurrentPageIndex") + 1 %>' /> 


can i do  this

thanks
Davari
0
Daniel
Telerik team
answered on 07 Oct 2008, 12:22 PM
Hello Javad,

Get PageCount:
RadGrid1.PageCount 

PageIndex:
RadGrid1.CurrentPageIndex 

Regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Javad Davari
Top achievements
Rank 1
answered on 09 Oct 2008, 09:05 AM
Hello Daniel 

and thanks for your reply
but i want access to this from a tag(input) that place out of radgrid


can i do this?

all the best
Davari

0
Daniel
Telerik team
answered on 09 Oct 2008, 09:58 AM
Hello Javad,

Please test the following code:

aspx
<asp:TextBox ID="tbPageNumber" runat="server" Columns="3" Text='<%# RadGrid1.CurrentPageIndex %>' />  

code-behind
protected void Page_PreRender(object sender, EventArgs e) 
    tbPageNumber.DataBind(); 

Regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Javad Davari
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Javad Davari
Top achievements
Rank 1
Daniel
Telerik team
Share this question
or