TreeView get childs with a POST

3 posts, 0 answers
  1. Ana Clara
    Ana Clara avatar
    2 posts
    Member since:
    Aug 2014

    Posted 15 Dec 2014 Link to this post

    I have a treeview with remote data binding. Every time I expand a node it does a GET with the parent Id as parameter. Is it possible change the GET for a POST?

    The reason to do this is for security. We either need to encrypt the parameter on the GET or change it as a POST.
  2. Alexander Popov
    Admin
    Alexander Popov avatar
    1416 posts

    Posted 17 Dec 2014 Link to this post

    Hello Ana,

    Yes, changing the request type is supported through the Type method. For example: 
    @(Html.Kendo().TreeView()
        .Name("treeview")
        .DataTextField("Name")
        .DataSource(dataSource => dataSource
            .Read(read => read
                .Action("Employees", "TreeView").Type(HttpVerbs.Post)
            )
        )
    )


    Regards,
    Alexander Popov
    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.

     
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Ana Clara
    Ana Clara avatar
    2 posts
    Member since:
    Aug 2014

    Posted 17 Dec 2014 in reply to Alexander Popov Link to this post

    Thank you!
Back to Top