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

PageIndex click causes full postback from RadGrid in popup

3 Answers 81 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sameeksha
Top achievements
Rank 1
Sameeksha asked on 09 Nov 2012, 12:11 PM
Hi,

I am using RadGrid in an Ajax updated pop up created using bPopup plugin for jQuery (http://dinbror.dk/bpopup/). I have the RadGrid and other controls in an Ajax UpdatePanel. The grid loads fine and shows the data. However when I click on a page number shown in the pager at the bottom of the grid it causes a full post-back, the page gets reloaded and the popup disappears. When I click the popup image button again I see the page number changed in the grid.

I looked at various threads regarding UpdatePanel and RadGrid and tried the following. None of it has helped.
1. Wrap the RadGrid in RadAjaxPanel.
2. Set grid viewstate = false when inside an update panel.
3. Set the update mode of update panel to conditional for all update panels on the page
4. Set RenderMode of the RadAjaxPanel and UpdatePanel to Inline.

Please help out.

Thanks and Regards,
Sameeksha

3 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 14 Nov 2012, 07:55 AM
Hi,

Most probably the problem comes from wrong Ajax settings or nesting of RadAjaxPanel controls and/or RadAjaxManager control.

However, based on the provided information it is too hard to find the exact problem. Could you share your full page source code along with the code-behind file content? Thus all the people who want to help you will have better understanding of you case.



Kind regards,
Andrey
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Sameeksha
Top achievements
Rank 1
answered on 23 Nov 2012, 09:44 AM
I resolved this issue. Strange reason, setting 'ClientIDMode=Static' in the radgrid properties was causing this issue. It went away after I removed this attribute.
0
Andrey
Telerik team
answered on 28 Nov 2012, 07:16 AM
Hello,

Yes, this is true because if there are two controls with the same ID RadAjaxManager won't be able to distinguish which control should be updated or not.  That is why you should either use Predictable(the default value) or AutoID.

Greetings,
Andrey
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Sameeksha
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Sameeksha
Top achievements
Rank 1
Share this question
or