My team is currently migrating to the ASP.NET AJAX controls.
We are currently experiencing an issue with the RadGrid's paging. We would like to continue with our current functionality moving forward.
We have a paging item that we have added to give users access to the first page of the paging directly. To accomplish this, there is a LinkButton added directly in front of the "previous page" button.
As an example:
After the update, this isn't adding the button back in the correct position. It looks as though getting a reference to a label isn't going to work, as the paging is seen contained with the PagerLeft_Office2007 class.
How can I accomplish this with the update? Also, I am aware of the Pager Template, but I do not see a reason to implement one for this minor update. If it at all possible I would like to simply modify this managed code.
Thanks!
We are currently experiencing an issue with the RadGrid's paging. We would like to continue with our current functionality moving forward.
We have a paging item that we have added to give users access to the first page of the paging directly. To accomplish this, there is a LinkButton added directly in front of the "previous page" button.
As an example:
| protected void SearchGrid_ItemCreated(object sender, GridItemEventArgs e) { if (e.Item is GridPagerItem) { //These control the footer of the grid where the page change can be displayed |
| Label ChangePageSizeLabel = (Label)e.Item.FindControl("ChangePageSizeLabel"); |
| //Created a "First Page" button |
| LinkButton btnFirst = new LinkButton(); |
| btnFirst.Text = "«"; |
| btnFirst.CommandName = "Page"; |
| btnFirst.CommandArgument = "First"; |
| //Add the button to the control |
| ChangePageSizeLabel.Parent.Parent.Controls.AddAt(0, btnFirst); } } |
After the update, this isn't adding the button back in the correct position. It looks as though getting a reference to a label isn't going to work, as the paging is seen contained with the PagerLeft_Office2007 class.
How can I accomplish this with the update? Also, I am aware of the Pager Template, but I do not see a reason to implement one for this minor update. If it at all possible I would like to simply modify this managed code.
Thanks!