RADTreeView switches to "GET" if a port# is specified in WebServiceSettings ???

2 posts, 0 answers
  1. roy
    roy avatar
    1 posts
    Member since:
    Dec 2010

    Posted 17 Dec 2010 Link to this post

    Hi,

    I have a VS2010 solution in which I have a project containing an AJAX-Enabled WCF service, and also a RADControls Web Application. The default.aspx has a RADTreeView control on it. I load the root nodes and first children of the tree in the onPageLoad event server side. I have the treeview control configured to hit a WCF web service when expanded. Here is my markup...

    <

     

     

    telerik:RadTreeView ID="RadTreeView1" Runat="server" DataTextField="Text" DataValueField="Value" Skin="Outlook" Width="477px">

     

     

     

    <Nodes>

     

     

     

    <telerik:RadTreeNode runat="server" AllowDrag="False" AllowDrop="False" AllowEdit="False" Checkable="False" Text="Laws">

     

     

     

    </telerik:RadTreeNode>

     

     

     

    </Nodes>

     

     

     

    <WebServiceSettings Path="http://localhost:22222/TMLawsDataService.svc" Method="LoadTreeNodes" UseHttpGet="false" />

     

     

     

    <DataBindings>

     

     

     

    <telerik:RadTreeNodeBinding Depth="1" ExpandMode="WebService" />

     

     

     

    </DataBindings>

     

     

     

    </telerik:RadTreeView>

     

    If I have my WCF service in the same project as the default.aspx, then I don't need to specify a port number in the "Path" attribute of the WebServiceSettings node, and the RADTreeControl does a POST back to my WCF service onClientSideClick to get the next level of tree children, and everything works great. BUT if I want to be a good little coder and separate my projects out into a WCF project and a Web Client project under the same solution, then in order to debug my solution in Visual Studio, I need to set 2 startup projects, and run them on different assigned ports. When I do that, I need to specify the port number in the "Path" attribute of the WebServiceSettings node, and when I do that, the RADTreeView control suddenly decides to send GET requests to my service, which my WCF service does not handle, it only takes POSTs.

    I have tried setting the "UseHttpGet" attribute of the  WebServiceSettings node to "false" but it does not affect the call type happening from the client to the server when a tree level is expanded by the user. If I specify a port #, it uses GET, if not, it uses POST.

    SO... how do I fix this? I must have it do a POST back when I specify a port number on the Path attribute.

    thanks for any help

    - Roy
  2. Nikolay Tsenkov
    Admin
    Nikolay Tsenkov avatar
    734 posts

    Posted 22 Dec 2010 Link to this post

    Hello roy,

    I was not able to reproduce the problem. I have modified the WCF Web Service demo of RadTreeView but the request was still post and not get and no problem occurred what so ever.
    Could you, please, isolate the scenario reproducing the problem in a simple example and send it to us? Perhaps this will be the only way since it doesn't reproduce at our end.


    Regards,
    Nikolay Tsenkov
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Back to Top