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

TreeView get childs with a POST

2 Answers 80 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Ana Clara
Top achievements
Rank 1
Ana Clara asked on 15 Dec 2014, 08:27 PM
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 Answers, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 17 Dec 2014, 01:19 PM
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.

 
0
Ana Clara
Top achievements
Rank 1
answered on 17 Dec 2014, 03:24 PM
Thank you!
Tags
TreeView
Asked by
Ana Clara
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Ana Clara
Top achievements
Rank 1
Share this question
or