TreeView Control uses GET instead of POST on HTTPs Pages

2 posts, 0 answers
  1. KI performance
    KI performance avatar
    13 posts
    Member since:
    Jun 2013

    Posted 15 Apr 2014 Link to this post

    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:

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

    User Control (*.ascx):

        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>
            <telerik:RadTreeNode Text="Root Node" ExpandMode="WebService">
  2. Hristo Valyavicharski
    Hristo Valyavicharski avatar
    975 posts

    Posted 18 Apr 2014 Link to this post

    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.

    Hristo Valyavicharski

    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.

Back to Top