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">
<telerik:RadTreeNode runat="server" AllowDrag="False" AllowDrop="False" AllowEdit="False" Checkable="False" Text="Laws">
<WebServiceSettings Path="http://localhost:22222/TMLawsDataService.svc" Method="LoadTreeNodes" UseHttpGet="false" />
<telerik:RadTreeNodeBinding Depth="1" ExpandMode="WebService" />
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