Telerik Forums
Kendo UI for jQuery Forum
1 answer
190 views

I was trying to implement Kendodropdowntree , I came across following situation which I am not able to understand


                $(dropdowntree).kendoDropDownTree({
                placeholder: "Select ...",
                height: "auto",
                dataSource:  //HARD CODED VALUE GOES HERE 
            });
       } 

Above example will work fine when , I hard code those datasource values. When I try to pass some variable there it will not work

var datatobind= somedata // data in exact format it is expected 
{
        
                $(dropdowntree).kendoDropDownTree({
                placeholder: "Select ...",
                height: "auto",
                dataSource:  datatobind
            });
       }

Even I tried passing variable of following type

var dataSourcetype = new kendo.data.HierarchicalDataSource({
        data: datatobind
    });

 
{
        
                $(dropdowntree).kendoDropDownTree({
                placeholder: "Select ...",
                height: "auto",
                dataSource:  dataSourcetype.options.data
            });
       }

But even above also doesn't solve problem, I am not able to get it , why passing exact same variable is not binding to data source.

Lyuboslav
Telerik team
 answered on 14 Dec 2022
1 answer
116 views
loadOnDemand: true, Kendo tree view is not working after upgrading kendo and jquery version ,previously  we are fetching the chide node data of treeview ,  after expanding the node but it is not working now
Martin
Telerik team
 answered on 29 Aug 2022
2 answers
481 views

I've implemented the example code found here: https://demos.telerik.com/kendo-ui/treeview/filter-treeview-in-dialog

It works as expected and is perfect for my requirements, apart from one annoyance.

When the filter is in use some child nodes are hidden, but if you click the parent node checkbox, the result is that all child nodes are checked. Irrespective of what is visible (filtered).

This isn't very useful. Is there a solution whereby only the visible children would be checked/unchecked when the parent checkbox is clicked?

Thanks,
John

John
Top achievements
Rank 2
Iron
 answered on 14 Aug 2022
0 answers
150 views

Hi Team,

I am using file manager and I wanted to sort tree view elements in file manager based on some custom logic. Now by default it is sorting based on name. Is there any way to implement custom sorting?

jessen
Top achievements
Rank 1
 asked on 25 May 2022
2 answers
106 views

Hello,

 

I am trying to bind my treeview to a datasource provided by a controller function, using two examples provided by Telerik, on the web site and at the demos project. My goal is to use the script call from used in one demo with the controller data source used in the other, but I am not being able to do it.

This is the script code:

 <script>
        var serviceRoot = "https://demos.telerik.com/kendo-ui/service";
        homogeneous = new kendo.data.HierarchicalDataSource({
            transport: {
                read: {
                    url: "api/Servicos/Employees",
                    dataType: "jsonp"
                }
            },
            schema: {
                model: {
                    id: "SetorId",
                    hasChildren: "hasChildren"
                }
            }
        });

        $("#treeview").kendoTreeView({
            dataSource: homogeneous,
            dataTextField: "Nome"
        });
    </script>

And this is the Controller code:

        [Route("Employees")]
        [HttpGet]
        public JsonResult Employees()
        {
            var result = _unitOfWork.SetorSolicitante.GetAll();
            {
                var employees = from e in result
                                select new
                                {
                                    id = e.SetorSolicitanteId,
                                    Name = e.Nome,
                                    hasChildren = (from q in _unitOfWork.SetorSolicitante.GetAll()
                                                   where (q.SetorPaiId == e.SetorSolicitanteId)
                                                   select q
                                                   ).Count() > 0
                                };

                return new JsonResult(employees.ToList());
            }
        }

My table references itself, where SetorPaiId indicates if the SetorId is a child of it.

Could I get some assistance on that issue?

Regards,

Alexandre

   
Alexandre
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 12 May 2022
3 answers
175 views
Having a treeview with images for each node, I tried changing the image for the node upon selection using the following event handler:
function onSelectNode( e )
{
    var dataItem = this.dataItem( e.node );
    dataItem.imageUrl = "someImage.png";
]
While stepping it appears that dataItem.imageUrl has been changed, however the treeview does not show the new image.
How can I get the new image to show?
Andrea
Top achievements
Rank 1
Iron
 answered on 14 Apr 2022
1 answer
60 views

I am looking to use the treeview to show the contents of an s3 bucket.

Along with the filename, I would like to show the size and also the date modified

Neli
Telerik team
 answered on 09 Mar 2022
0 answers
83 views

Hi All,

I need to create a dropdownlist & kendoTreeList inside a kendo grid even though the grid is not set to edit mode.

User should be able to select the value from the dropdown list & the kendo Treelist.

kindly give me the  approach to implement this. 

please share me the links of any examples .

Thanks in advance. :)

 

 

 

Sunil
Top achievements
Rank 1
 updated question on 15 Feb 2022
0 answers
60 views
Hello , I am getting issue in tree menu drag and drop. how to stop it. it's coming is randomly kindly help.
Sanjay
Top achievements
Rank 1
Iron
 updated question on 14 Feb 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?