RadAjaxPanel doing full postback at first click in SharePoint 2007

8 posts, 0 answers
  1. andrei
    andrei avatar
    7 posts
    Member since:
    Jul 2006

    Posted 09 Jul 2008 Link to this post

    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
  2. Mishel
    Mishel avatar
    17 posts
    Member since:
    Jun 2008

    Posted 11 Jul 2008 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. andrei
    andrei avatar
    7 posts
    Member since:
    Jul 2006

    Posted 14 Jul 2008 Link to this post

    Hi,

    I'm using the latest trial version, downloaded from your site
  5. Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 14 Jul 2008 Link to this post

    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
  6. andrei
    andrei avatar
    7 posts
    Member since:
    Jul 2006

    Posted 14 Jul 2008 Link to this post

    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
  7. Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 16 Jul 2008 Link to this post

    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
  8. andrei
    andrei avatar
    7 posts
    Member since:
    Jul 2006

    Posted 16 Jul 2008 Link to this post

    Hi,
    Thank you very much. Moving loading of control to init solved the problem.
    Now it's working perfectly

    Regards
  9. Brian O'Halloran
    Brian O'Halloran avatar
    2 posts
    Member since:
    Jun 2008

    Posted 13 Feb 2009 Link to this post

    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();
    }
     

     

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017