Get checked items upon form submission

2 posts, 0 answers
  1. Ryan
    Ryan avatar
    3 posts
    Member since:
    Oct 2011

    Posted 10 Jul 2018 Link to this post


    How do we go about getting the checked items when we submit a form containing the DropDownTree?  Specifically, I'd like to get a list of checked Id values from the TreeViewItemModel.


  2. Plamen
    Plamen avatar
    3080 posts

    Posted 12 Jul 2018 Link to this post


    The HTML <form> element would submit to the server the values of the <input> elements it contains. In the scenario when we have multiple checked items passing getting them from a value of an input in not quite flexible so in such case we would rather recommend use and ajax post request and pass the desired information in the data. Here is sample code that worked at my side:
        $("#btnSave").on("click", function (e) {
            var dropdowntree= $('#dropdowntree').data('kendoDropDownTree');
            var dDTreeItems = JSON.parse(JSON.stringify(dropdowntree.value()));
            var data = {
                DDTreeItems: dDTreeItems
            $.ajax('/Home/Save', {
                type: 'POST',
                data: data,
                dataType: "json"
            }).done(function () {

    If you have further questions please let me know.

    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top