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

Unable to call the Webservice method

3 Answers 81 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 10 Jul 2009, 09:29 PM
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.



3 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 13 Jul 2009, 02:05 PM
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.
0
Chris
Top achievements
Rank 1
answered on 13 Jul 2009, 06:04 PM
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();






0
Chris
Top achievements
Rank 1
answered on 13 Jul 2009, 10:16 PM
thanks..i did some search on the forums for javascript error, and recreating a Asp.net ajax project fixed it.


Tags
TreeView
Asked by
Chris
Top achievements
Rank 1
Answers by
Simon
Telerik team
Chris
Top achievements
Rank 1
Share this question
or