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
Can i place pager out of the rad grid ?
if yes , please guide me
All the best
Davari
5 Answers, 1 is accepted
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
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
can i do this
thanks
Davari
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
Hello Javad,
Get PageCount:
PageIndex:
Regards,
Daniel
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
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
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
Hello Javad,
Please test the following code:
aspx
code-behind
Regards,
Daniel
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
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.