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

TreeView Control uses GET instead of POST on HTTPs Pages

1 Answer 19 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
KI performance
Top achievements
Rank 1
KI performance asked on 15 Apr 2014, 10:35 AM
Hello there,

i am using RADtreeview within my User Control (*.ascx). I also configured it to get its nodes from a webservice. So far so good, all is working fine as long as i open the Page with "http://". I see the Control is sending its request with POST to my WebService and gets all needed information to populate the Tree.

But as soon as i switch to "https://" the Control is asking the WebService with GET instead of POST. How to configure it to always send POST?

UseHttpGet="false" doens't change anything. Also my WebService only have a POST OperationContract.

WebService Contract:

[OperationContract]
[WebInvoke(Method = "POST", BodyStyle = WebMessageBodyStyle.WrappedRequest, RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
RadTreeNodeData[] GetNodes(RadTreeNodeData node, IDictionary<string, object> context);

User Control (*.ascx):

<telerik:RadTreeView
    ID="RadTreeView1"
    runat="server"
    Width="100%"
    PersistLoadOnDemandNodes=   "false"
    EnableViewState         =   "false"
    LoadingStatusPosition   =   "AfterNodeText"
     
    >
    <ExpandAnimation Type="none"></ExpandAnimation>
    <CollapseAnimation Type="none"></CollapseAnimation>
    <WebServiceSettings Path="http://localhost/_vti_bin/xxxx.xxxx.xxxx/myTopBarNavigation.svc" Method="GetNodes" UseHttpGet="false"></WebServiceSettings>
    <Nodes>
        <telerik:RadTreeNode Text="Root Node" ExpandMode="WebService">
        </telerik:RadTreeNode>
    </Nodes>
</telerik:RadTreeView>

1 Answer, 1 is accepted

Sort by
0
Hristo Valyavicharski
Telerik team
answered on 18 Apr 2014, 07:03 AM
Hi Sascha,

By default the UseHttpGet property is false and the tree makes POST requests. What Telerik version do you have? Please attach Fiddler log.

Regards,
Hristo Valyavicharski
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
TreeView
Asked by
KI performance
Top achievements
Rank 1
Answers by
Hristo Valyavicharski
Telerik team
Share this question
or