tree view inside a update panel not raising post back events

5 posts, 0 answers
  1. rajani ramineni
    rajani ramineni avatar
    8 posts
    Member since:
    Mar 2006

    Posted 18 Mar 2009 Link to this post

    Hi,

    I have a  tree view in my user control(ucSearch) and user control is in an asp.net update panel.

    <asp:UpdatePanel ID="upKeywordSearch" runat="server">    
        <ContentTemplate>
             <div style="height:466">
                      <KS:Search id="ucSearch" PageName="Topic" runat="server" /> -- this control has the tree view
              </div>                                            
        </ContentTemplate>        
     </asp:UpdatePanel>

    Events on the tree view (ex. onNodeClick, OnContextMenuItemClick) does not cause the post back, they work fine when there is no asp.net update panel wrapped around the user control. And this problem is only when included the page in sharepoint when i run the page as normal asp.net application it works fine.

    Can anyone let me know what is the problem and wat is the solution for this.

    Thanks in advance 

    Regards
    Rajani
  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 19 Mar 2009 Link to this post

    Hi rajani ramineni,

    Could you please try whether a regular button control works as expected? ASP.NET Ajax and SharePoint do not mix well. You can check this blog post for additional info.

    Regards,
    Albert
    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.
  3. rajani ramineni
    rajani ramineni avatar
    8 posts
    Member since:
    Mar 2006

    Posted 19 Mar 2009 Link to this post

    Hi Albert,

    Thanks for the quick Reply.

    The article is about the older version of the ajax 1.0 and other things but we already have the sharepoint services SP1 and latest versions of ajax (3.0) also. And also followed all the steps mentioned in that article.

    In the same user control(where i have tree control) i have a button which actually loads the tree control. and this button works very much normally. 

    We have used ajax controls like update panels and Rad ajax panels in lot of other pages and everything is working fine in sharepoint infact i dont have this problem with Rad grid (inside update panel) events also but only tree control is giving problem.

    Is there any solution to this problem.

    Regards
    Rajani
  4. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 19 Mar 2009 Link to this post

    Hello rajani ramineni,

    We are actually not aware of any issues with RadTreeView and UpdatePanels. SharePoint and UpdatePanels don't mix up very well so I am very surprised that the problem occurs only with RadTreeView. I suggest you open a support ticket and send us a runnable version of your code which we can troubleshoot locally.

    Regards,
    Albert
    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.
  5. rajani ramineni
    rajani ramineni avatar
    8 posts
    Member since:
    Mar 2006

    Posted 19 Mar 2009 Link to this post

    Hi Albert,

    Thanks for the support,

    This is what i was missing

    <script type="text/javascript">        _spOriginalFormAction = document.forms[0].action; _spSuppressFormOnSubmitWrapper = true;</script>

    Regards
    Rajani
Back to Top