Unable to call the Webservice method

4 posts, 0 answers
  1. Chris
    Chris avatar
    3 posts
    Member since:
    Aug 2007

    Posted 10 Jul 2009 Link to this post

    I am using the RadTreeView with the ExpandMode = WebService. The root node gets loaded fine with the "+" sign and nothing happens when I click it. It never reaches the breakpoint in the  WebMethod of my web service. I have the same signature as the demo code. The demo example works fine, so obviously Im missing something here. Below is the code
    aspx page
     <asp:ScriptManager ID="ScriptManager" runat="server">
        </asp:ScriptManager>
        <telerik:RadTreeView ID="reportsTree" runat="server" Skin="Vista">       
            <WebServiceSettings Method="GetSubFolders" Path="SubFolders.asmx" />
            <Nodes>
                <telerik:RadTreeNode Text="Departments " Value="20" ExpandMode="WebService">
                </telerik:RadTreeNode>
            </Nodes>
        </telerik:RadTreeView>
    webservice
    [ScriptService]
    public class SubFolders : WebService
    {    [WebMethod]
        public RadTreeNodeData[] GetSubFolders(RadTreeNodeData node, object context)
        { ///Method implementation here, and breakpoint that is never hit while in debug mode) }
    Please let me know if there is something I am missing here.



  2. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 13 Jul 2009 Link to this post

    Hello Chris,

    Are you receiving any JavaScript errors on the page when you expand the Node?

    Best wishes,
    Simon
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
  3. Chris
    Chris avatar
    3 posts
    Member since:
    Aug 2007

    Posted 13 Jul 2009 Link to this post

    Yes I do receive JavaScript error on the page that is showing RadTreeView.
    It says "Telerik is undefined" at line 92
    line 92 in the source is
    Telerik.Web.UI.RadTreeView._preInitialize("ctl00_LeftPlaceHolder_reportsTree","0");Sys.Application.initialize();






  4. Chris
    Chris avatar
    3 posts
    Member since:
    Aug 2007

    Posted 13 Jul 2009 Link to this post

    thanks..i did some search on the forums for javascript error, and recreating a Asp.net ajax project fixed it.


Back to Top