One of my TreeList field is an array. For example:
var localData = [
{ id: 1, name: "A Team", description: "", players: ["a","b"], parentId: null },
{ id: 2, name: "Team Lead", description: "", players: ["c"], parentId: 1 }
];
The "players" field is an array. I configure the column like:
columns: [
{ field: "name", title: "Team", width: "350px" },
{ field: "description", title: "Description", width: "350px" },
{
title: "Players",
template: '{{ dataItem.players }}'
}]
However, the "Players" column shows like
["a","b"]
I expect it as
a, b
How do I fix it?
Thanks,
Is there a way to filter the JSON data saved in the spreadsheet out of cells that are not filled with data but contain Spaces

Hello
I'm using an editable GRID with CREATE toolbar. I would like to customise my editable pop-up to add a kendoDropDownList for selecting a element in a list.
In my exemple I have a grid with "accessoires" I can ADD new one or DELETE existing ones
If I create I want to choose the new element in a kendoDropDownList NOT in TYPE=INPUT
How to do this ?
Here is the code of my GRID
//Grille des accessoires
$("#gvAccessoires").kendoGrid({
columns: [
{
field: "LibelleObj",
title: "Accessoire"
},
{ command: [{ name: "destroy", text: "Supprimer", visible: function (dataItem) { return !dataItem.IsPublie } }], title: " ", width: "250px" },
],
editable: {
mode: "popup",
window: {
title: "Saisie des accessoires",
width: 600
}
},
toolbar: ["create"],
edit: function (e) {
???? how to add here the kendoDropDownList
},
save: function (e) {
Accessoires.add(new Accessoire(false, e.model));
},
remove: function (e) {
_.forEach(selectedOP.Accessoires, function (item) {
if (item.idObj == e.model.idObj) Accessoires.remove(item);
});
}
});
var ds3 = new kendo.data.DataSource({
data: Accessoires,
schema: {
model: {
id: "idObj",
fields: {
id: { editable: false, nullable: true },
LibelleObj: { validation: { required: true } },
}
}
}
});
$("#gvAccessoires").data("kendoGrid").setDataSource(ds3);
Thank you
Hi,
I have tried this every way I can think of. I am having problems with setting data-bind while iterating an array.
Made a small demo below, the actual code is much more complex and that is the reason I need to use the for loop in order to get the correct result.
How can I set the data-bind property on the input correctly?
<div id="container">
<div id="weekdays" data-template="weekday" data-bind="source : this"></div>
</div>
<script id="weekday" type="text-x-kendo-template">
<div>
# for (i = 0; i < data.lines.length; i++) { #
<h2>#: data.lines[i].day #</h2>
<input type="text" data-bind="value: data.lines[i].quantity" />
# } #
</div>
</script>
<script>
$(document).ready(function () {
var vm = kendo.observable({
lines: new kendo.data.ObservableArray([
{ id: 123, day: "Monday", quantity: 5 },
{ id: 322, day: "Tuesday", quantity: 2 }
])
});
kendo.bind($("#container"), vm);
});
</script>Hi,
Is there a way to auto align the cell width/height when double clicking on the cell header similar to what we have in excel?
1. Text is hidden due to cell width
2. Double click on the header line to auto align and show the full text.
Thanks in advance.
Hi mate,
Recently I was working with kendo grid (.net mvc project). In a particular scenario I have a list of data that has to be populated in the grid.
for ex: the dummy grid will look like this(added with this post).
is there any possibility for me to add S.No column to act as a static one. If i drag and drop moving up and down the other three columns the S.No should be rearranged to 1,2,3 ...
Also i have another one diffuculty, I select a list of data from one page and populate the data in a grid in another page. the S.no column should be added dynamically. If i select 5 data from page 1 and the grid should have the S.No 1,2,3,4,5
Dear Team,
I have problem with kendo scheduler agenda view in mobile devices. End time in k-scheduler-timecolumn shows incorrect value (it equals to Start time value). Could you please answer how can I fix it?
I am using Kendo UI for Jquery.
I have a grid and a local array as a datasource. The grid is showing, but the data inside is not.
I searched aroud and I can't find what's wrong.
Here is the code: Dojo UI
Per:
https://demos.telerik.com/aspnet-core/grid
can someone provide/post the source for the Editor Templates Names for Country and ClientCategoryEditor?
I'm trying to make an editable grid with a select control in one of the columns (Country), just like the demo... but the source code/markup seems to be incomplete...
I'm looking for the source editor templates behind these:
columns.Bound(p => p.Country.CountryNameLong).Title("Country").EditorTemplateName("Country")
columns.Bound(p => p.Category.CategoryName).EditorTemplateName("ClientCategoryEditor")
fyi these are broken in the edit in teletik repl as well....
maybe if it was a snake it would have bit me...
Thanks

Hello,
We try load ~3-4000 treenodes to treeview but it is very slow. Building the treeview after the datasource is available is ~2 minutes.
The database query duration is few seconds.
Our code:
$("#tvFormulaTree").kendoTreeView({
template: "#if (item.Clickable) {# <a id='" + "#=item.id#" + "' onclick='handleFormulaTreeViewDblClick(\"" + "#=item.FullPathName#" + "\"" + ");' >#=item.Name#</a> #} else {# #=item.Name# #}#",
name: 'tvFormulaTree',
dataTextField: "Name",
dataSource: dsFormula,
loadOnDemand: false
});
var dsFormula = new kendo.data.HierarchicalDataSource({
transport: {
read: function (options) {
$.ajax({
type: "POST",
url: '@Url.Content("~/DD/GetFilteredTreeDataAsync")',
dataType: 'json',
traditional: true,
contentType: "application/json; charset=utf-8",
success: function (result) {
options.success(result);
}
});
}
},
schema: {
model: {
id: "id",
children: "Children"
}
}
});
Can you help please, how can we speed-up this?
Thank you!
