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

Paging on grid disables template postback

1 Answer 58 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Curt
Top achievements
Rank 1
Curt asked on 16 Oct 2008, 09:18 PM
I have a grid with two template image buttons.  I register both on the Grid_ItemCreated event so that they will do a postback.  On the first page of the grid the postbacks work fine.  When I page to the second or third page of the grid the buttons will no longer postback.

The grid and the rest of the page use an Ajaxmanager control.  If I use an AjaxPanel around the whole page instead of the AjaxManager it works fine.  How do I go about getting a button in a grid templatecolumn to do a postback when the grid page has changed?

Using an AjaxPanel around the whole page is not effecient.

Thanks


1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 20 Oct 2008, 12:37 PM
Hi sl6rp,

Basically, there should be no difference whether you ajaxify the grid via RadAjaxManager or RadAjaxPanel as long as your implementation conforms to the dynamic assignment of properties/events for ASP.NET controls.

Your approach with the ItemCreated event is correct, hence in order to progress with our investigation, please assemble a stripped working version of your project and send it attached to a regular support ticket. We will test/debug it locally and will get back to you with our findings.

Best regards,
Stephen
the Telerik team

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