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
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
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
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
I'm using the latest trial version, downloaded from your site
0
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
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
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
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
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
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();
}
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
EnsureChildControls();
}