Hello,
We used treelist which inside scrollable div in our MVC project. If we configured scrollable= false for treelist all column's width will mess up. If we used default setting (which is scrollable=true) the double scroll bar appeared which is not allowed in project. How to configured scroll bar only horizontally or vertically for Kendo UI treelist ?
Thanks
In the Editing example, (screenshot attached) if the user clicks on Add New Record, a new blank line appears at the top of the TreeList, therefore the new entry would be at the root. How would I go about it, if I wanted to add someone under Buffy (using the sample data)? I understand, I could have the user add a new row, then drag and drop the new value anywhere in the hierarchy, but I have a few issues with that. First, I don't think it's a great user experience for the user to have to do that. Secondly, and more importantly, we have business rules that don't allow people add a value to the root level.
I was hoping I could click on the row for Buffy, then click add and have the new row appear under Buffy's row. Is this possible?
Thanks,
Mike
Hi,
I have a TreeList with several columns. One of them is displaying an image. The others just some short text.
The image column contains the url in it's model and I use a custom template to show the image. This is gonna work as expected:
columns.Add().Field(i => i.ImageUrl).Template(
"<img src=\"#: ImageUrl #\">"
)
But no I wand to edit this row and have a custom editor for this image column. At the end I wand to embedd DropZone to upload a new image. How can I assign a custom editor (any kind) instead of the default textbox which appears for basically every kind of data type?
I've seen that the column builder has a method called "Editor(string value)". But the API documentation of Kendo is as useless as ever. I don't understand why a enterprise grade component provider can survive with such bad quality. Nevertheless, is this maybe the way to go? If yes, how should I use this method? Because it's not the name of a kendo-template, editor template, javascript function nor html id.
Thank you. Best regards.
Hi,
I am using a treeview to load data and on edit of a row, i would want to display a dropwon to choose data, i tried below to get the dropdown, but this does not give me a dropdown, please advise if this is possible or how to achieve this.
columns.Add().Field(e => e.InActive).Editor("StatusType").Width(100) ;
below is a partial view i added under the EditorTemplate folder
@model CodedValues
@(Html.Kendo().DropDownListFor(m => m)
.AutoBind(true)
.DataTextField("DisplayText")
.DataValueField("KeyText")
.DataSource(dataSource =>
{
dataSource.Read(read => read.Action("GetTypes", "my"))
.ServerFiltering(true);
})
)
@Html.ValidationMessageFor(m => m)
Thanks in advance.
Hi,
I am trying to apply the functionality from Resize and Expand Grid
https://docs.telerik.com/kendo-ui/controls/data-management/grid/how-to/Layout/resize-grid-when-the-window-is-resized
to the TreeList.
I have tried tree.Scrollable(true); as an equivalent for grid.Scrollable(scrollable => scrollable.Height("auto")); but it does not work. At least the classes on content are not the same.
Can this be achieved? How can I have resize and Expand TreeList to 100% Height?
Hello,
I want to hide the CreateChild command ont he third level of my nodes.
So if wonder if a way to get the node level of an element exists on databound event ?
Or maybe ther is a better way to accomplish it ?
I started the databound event like this:
function dataBound(treeview) {
var node;
var nodes = treeview.sender.dataSource.view();
for (var i = 0; i < nodes.length; i++) {
node = nodes[i];
}
}
I don't want use the hasChildren attribut beacause in my model sometimes element at level 2 doesn't have children.
Thank you in advance
We have implemented in grid a conditional filter using 'filterMenuOpen' and 'filter' events of the grid. And it works.
Now we have a page where a hierarchy data needs to be display and must have the same look and feel as the grid, hence the conditional filtering. In order to do this we have modified the treelist in order to have the 'filterMenuOpen' and 'filter' events on tree adapting the code from grid.
We also handled the filter open like in the thread http://www.telerik.com/forums/cascade-filter-using-ajax-binding
But we have found that setting the filter on treelist does not work in the same way as it does for grid:
1. We have a table with Id, MainField, SubField, ParentId => the data is displayed in the treelist correctly
(The SubField has to have the source dynamic based on the MainField selected)
2. Select a filter on MainField => the data is filtered correctly
3. Select a filter on SubField => The datasource of SubField it is correct based on the selected MainField filter value and the filter is done correctly
4. Change the MainField filter and select another value (we have to remove the SubField filter) =>
The TreeList displays changes multiple times and the last one is not the correct one (It displays the same data as the first filter at point 2)
Questions:
1. Is there a way to make the filter functionality work like in grid?
2. Is there a plan to soon release a new version to make the treelist have the same functionality as the grid? If not can we still hope there will be one :D
3. Is there a solution to implement the hierarchy in the grid?
PS: Because we are using MVC and should have the same filtering as the grid we had to attach to the framework the same functionality (as in grid) already supported by the filter (kendoFilterMenu) in treelist.