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

[Solved] Postbacks are alternating between Full Postback and Ajax Partial Postback.

4 Answers 228 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Brent
Top achievements
Rank 1
Brent asked on 31 Dec 2008, 03:11 PM
Hi,

I have a very strange problem where on every click on a RadContextMenu, my page alternates between doing a Full Page Postback and Ajax Partial Page Postback.  Here is the scenario:

- I'm using the RadAjaxManager and loading my ajaxsettings in Page_Load.  They do load correctly on every postback (full and partial).
- I am attempting to ajaxify a RadContextMenu, so that all items on the context menu do an ajax partial page postback.
- My RadContextMenu is displayed by clicking on an asp ImageButton (OnClientClick calls the show method).  I got the javascript to show it, directly from your PopUp menu demo at http://demos.telerik.com/aspnet-ajax/Menu/Examples/ContextMenu/PopupMenu/DefaultCS.aspx
- The ImageButton is inside of an ASP Panel, while the RadContextMenu is outside of that panel.  Don't know if that information is relevant.

Here is the behavior I see:
- My page loads for the first time and I click the image button.  The context menu is displayed and I click an item on it.
RESULT:  I get a FULL page postback.

- I immediately click on the image button again.  The context menu is displayed and I click an item on it.
RESULT:  I then get a partial page postback that updates only the controls that I want to update.

From then on, I can just keep repeating the above test and my results alternate between the first result (full page postback) and the second result (partial page postback).

MORE INFORMATION:
- I just noticed that the problem is also happening on a grid filter on this same user control.  So, it isn't just a problem with my contextmenu.

Also, let me add that this is a usercontrol inside of an aspx page, where the aspx page contains a tabstrip and a multipage control, and I am ajaxifying both of them as below, because my tabstrip does a postback:

SecurityMainRadAjaxManager.AjaxSettings.AddAjaxSetting(tabStrip, tabStrip,

null);

 

SecurityMainRadAjaxManager.AjaxSettings.AddAjaxSetting(tabStrip, tabMultiPage, SecurityRadAjaxLoadingPanel);


Could ajaxifying the tabstrip and multipage have something to do with this.  It seems like those ajax settings are conflicting / messing up other ajax settings within user controls that are displayed in pages of the multipage.

What on earth could be happening?  What could I be doing wrong?  Any ideas on what to try?

Thanks In Advance,
Brent

4 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 06 Jan 2009, 06:53 AM
Hi Brent,

Unfortunately I could not reproduce this issue. I created a test project in my attempt to recreate the abnormality explained so far. I used the latest official build of RadControls. I've attached my sample web site project to this forum thread. Please examine it and tell me if I am missing something.

If the problem persists, I suggest you open a support thread and send us the modified test project reproducing the problem. Thus I will do my best to assist you further in resolving it.

Greetings,
Georgi Krustev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Michael
Top achievements
Rank 1
answered on 24 Apr 2009, 01:27 PM
I'm having this exact same issue. Did you find out what was wrong or were you able to fix it?

Thanks,
Mike
0
Brent
Top achievements
Rank 1
answered on 24 Apr 2009, 02:25 PM
Unfortunately, I got pulled away from this to work on something else.  So, no, I never did find a cause or solution.
0
Georgi Krustev
Telerik team
answered on 24 Apr 2009, 02:53 PM
Hello Michael,

I have answered to the support ticket opened on this matter. The answer was as follows:

Hello Michael,

Thank you for contacting us.

Unfortunately I could not reproduce this issue. I created a test project in my attempt to recreate the abnormality explained so far. I used the latest official build of RadControls. I've attached my sample web site project to this support thread. Please examine it and tell me if I am missing something in your logic.

I am looking forward to hearing from you.


If you do not mind we will continue the communication in the started support thread on this issue in order to avoid duplicate discussions. In this way you will be in touch how the resolution of the problem goes.

Regards,
Georgi Krustev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Ajax
Asked by
Brent
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Michael
Top achievements
Rank 1
Brent
Top achievements
Rank 1
Share this question
or