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

tree view inside a update panel not raising post back events

4 Answers 133 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
rajani ramineni
Top achievements
Rank 1
rajani ramineni asked on 18 Mar 2009, 09:06 PM
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

4 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 19 Mar 2009, 08:59 AM
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.
0
rajani ramineni
Top achievements
Rank 1
answered on 19 Mar 2009, 01:45 PM
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
0
Atanas Korchev
Telerik team
answered on 19 Mar 2009, 05:19 PM
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.
0
rajani ramineni
Top achievements
Rank 1
answered on 19 Mar 2009, 08:50 PM
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
Tags
TreeView
Asked by
rajani ramineni
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
rajani ramineni
Top achievements
Rank 1
Share this question
or