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

RadAjaxPanel doing full postback at first click in SharePoint 2007

7 Answers 107 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
andrei
Top achievements
Rank 1
andrei asked on 09 Jul 2008, 05:06 PM
Hi,

I have the following situation in which AjaxPanel is doing full postback at first click.

I'm developing a custom feature for SharePoint 2007 which has inside some webparts. In one of the webparts I have a RadTreeView in an AjaxPanel.
At the first click on a node , it is doing a full postaback after this working fine

Reading the info from an older thread ( http://www.telerik.com/community/forums/thread/b311D-bdktmm.aspx#578016 )

it seems that in my situation, when I have 3 pages (SP master page, feature page and ascx page) the solution is not working.

Do you have some ideas about it?

Regards
Andrei Gosman

7 Answers, 1 is accepted

Sort by
0
Mishel
Top achievements
Rank 1
answered on 11 Jul 2008, 10:51 AM
Hi,

Have you tried with the RadAjaxPanel form the new future release? It is working properly in SharePoint. Also when you have MasterPages and UserControls it is most appropriate to use RadAjaxManager instead of Panel. You can check this topic:
http://www.telerik.com/help/aspnet-ajax/ajxusercontrols.html
0
andrei
Top achievements
Rank 1
answered on 14 Jul 2008, 08:47 AM
Hi,

I'm using the latest trial version, downloaded from your site
0
Rosen
Telerik team
answered on 14 Jul 2008, 02:39 PM
Hello andrei,

Unfortunately I was unable to recreate the behavior you have described. I have attached a simple WebPart which tries the reproduce the desired scenario. Please give it a try and see if I'm missing something.

Kind regards,
Rosen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
andrei
Top achievements
Rank 1
answered on 14 Jul 2008, 03:22 PM
Hi,

My problem is not directly the webpart.
Inside the webpart I have a usercontrol with a treeview and here is the problem.
If a place the treeview, wich is inside the user control, in a AjaxPanel, then on first click I have a postback

Regards
0
Rosen
Telerik team
answered on 16 Jul 2008, 08:30 AM
Hi Andrei,

Can you please try moving the usercontrol's loading in webpart's Init phase? I have attached a modified version of the webpart to demonstrate this approach.

Best wishes,
Rosen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
andrei
Top achievements
Rank 1
answered on 16 Jul 2008, 01:08 PM
Hi,
Thank you very much. Moving loading of control to init solved the problem.
Now it's working perfectly

Regards
0
Brian O'Halloran
Top achievements
Rank 2
answered on 13 Feb 2009, 03:00 PM
I too had this issue, I solved it by adding EnsureChildControls to occur in the OnLoad Event
protected override void OnLoad(EventArgs e)
{
   base
.OnLoad(e);
   EnsureChildControls();
}
 

 

Tags
Ajax
Asked by
andrei
Top achievements
Rank 1
Answers by
Mishel
Top achievements
Rank 1
andrei
Top achievements
Rank 1
Rosen
Telerik team
Brian O'Halloran
Top achievements
Rank 2
Share this question
or