I have dynamically created, unpredictable (but always valid) kendo object .
Inside this object, there will sometimes be a rowTemplate method.
This object is then passed through a functionA that makes a few changes to the object (assigning default values etc.) before being passed into (sometimes) multiple kendogrids.
However, a problem arises when the rowTemplate method needs to reference the kendo grid element that it exists inside:
The parameters for rowTemplate only include the dataItem, which has no reference to the grid element or any of it's children and as the kendo object is created outside of where it is passed in to the kendo grid elements I have no scope to the grid element nor any ID it may have.
I've tried looking at the arguments to check to see if there are any extra parameters that I'm missing and there are none.
I have checked the value of this and it seems to evaluate to window.
Event is also not something I think that I can make use of.
https://dojo.telerik.com/ATesALoM/2
Two workarounds that I have thought of:
I could potentially attach a field when editing the object in functionA that is equal to the value of the to-be-created grid's ID and the grids can make use of this column in order to reference the kendo element.
The other workaround would be to (from functionA) programmatically loop through the object in search of any function and to bind those functions to the grid element, then simply have those functions assume that "this" will always be equal to the kendo grid element.
Both of these workarounds have drawbacks and I would rather only use them as a last resort.
Is there is something I am missing that would greatly simplify this?
If you require any clarification or examples needed please let me know and I'll provide them.

Hi - we use MVVM binding al lot in our kendo application.
Are there any samples / help pages that list the attribute names to use when declaring a TileLayout in MVVM style ?
Something similar to the information presented on this page: https://demos.telerik.com/kendo-ui/mvvm/widgets
Regards
Tom

I have this code below
$("#numeric").kendoNumericTextBox({
min: 1,
max: 100,
decimals: 0,
format: "# pieces",
spinners: true,
restrictDecimals: true
});
My problem is that if user enter "0", then tab out, value changes to "1" only, not "1 pieces"
So it does not follow the format if the entered value is below the min. No problem if value is more than max.
My version is "2018.3.1017", upgrade is not an option.
Do you have a workaround on how to force to change the display value with format (may be on the onblur event perhaps)?

@{Html.Telerik().Grid(Model) .Name("grdAllUsers") .DataKeys(keys => keys.Add(k => k.Id) ) .Columns(columns => { columns.Bound(o => o.FirstName) .Width(150); columns.Bound(o => o.LastName) .Width(150); columns.Bound(o => o.EmailAddress) .Width(200); .Width(70) .HtmlAttributes(new { style = "text-align:center" }); }) .NoRecordsTemplate(@<text>No User records to display.</text>) .Pageable(paging => paging.PageSize(15) ) .Sortable() .Filterable() .Render();}@{Html.Kendo().Grid(Model) .Name("grdAllUsers") .Columns(columns => { columns.Bound(o => o.FirstName) .Width(150); columns.Bound(o => o.LastName) .Width(150); columns.Bound(o => o.EmailAddress) .Width(200); .Width(70) .HtmlAttributes(new { style = "text-align:center" }); }) .Pageable(paging => paging.PageSize(15) ) .Sortable() .Filterable() .Render();}Hello,
we have a TileLayout with a Pie Chart inside. The Pie Chart is diaplaying labels.
Unfortunately when the tile size is reduced, the labels are cut off (horizontally and vertically).
Is there any way to prevent this.
Example:
Reduce the width of the Pie Chart in this dojo: https://dojo.telerik.com/EsOWoqAL
Hi,
i have a drop down tree created, as shown in the attachment below
i need to checked all the checkboxes by default. How to do this?

Hi!
I'm trying to make an ajax call to my controller function.
To get all the data that currently are in a grid's datasource.
Instead of calling directly to the grid's datasource.data() which only returns me the current grid page.
I go about this by instantiating a new kendo datasource.
But everything i try, yields "Uncaught TypeError: e.slice is not a function"
Thanks in advance.
public JsonResult ReadTimeRegistrationAjax([DataSourceRequest] DataSourceRequest request){ var dataSourceResult = getStuff().ToList(); return Json(dataSourceResult.ToDataSourceResult(request), JsonRequestBehavior.AllowGet);}
var grid = $("#GridTimeRegistrations").data("kendoGrid"); var dataurl = grid.dataSource.transport.options.read.url; var dataSource = new kendo.data.DataSource({ transport: { read: { url: dataurl, dataType: 'json' } }, }); dataSource.fetch(function() { var data = dataSource.data(); console.log(data); }I have an issue and I need someone to see what I'm doing wrong...
I tried to use several times "reorder". I simplify the test to this :
<!-- container templates --> <script id="barcelona" type="text/x-kendo-template"> A </script><script id="sofia" type="text/x-kendo-template"> B</script>$("#home-super-container").kendoTileLayout({ containers: [{ colSpan: 1, rowSpan: 1, header: { text: "Barcelona" }, bodyTemplate: kendo.template($("#barcelona").html()) }, { colSpan: 1, rowSpan: 1, header: { text: "Sofia" }, bodyTemplate: kendo.template($("#sofia").html()) }], columns: 2, columnsWidth: 285, rowsHeight: 285, reorderable: true, reorder: function (e) { console.log(e.newIndex, e.oldIndex); } });
The console.log indicates (0 0), it should be (0 1) or (1 0)...

Hi,
I have a kendo toolbar with multiple dropdowns and checkboxes to filter my datasource. What I want is when I submit my filter selections, if a spesific checkbox is checked, then datetime column of the grid will have this template:
"#= kendo.toString(kendo.parseDate(dates), 'dd/MM/yyyy') #"
If the checkbox not checked (or the page is just loaded with empty checkbox in default scenario) the column will have:
"#= kendo.toString(kendo.parseDate(dates), 'dd/MM/yyyy HH:mm') #"
as template.
I tried conditioning inside of grid but I didn't manage to obtain checkbox value. I tried writing a function outside the grid function but when I refresh grid data with:
var grid = $("#grid").data("kendoGrid");
grid.dataSource.data(reportData);
it only refresh the data inside grid, that does not trigger the template function.
How can I change the column template while refreshing the data according to that checkboxs value?
Greets Umutcan