Trying to accomplish a simple task, after loading I want to set the map extent based on the marker layer.
I have the code to create the extent and set it but timing is the issue. When I try to do this on document ready the layer item list is empty and there is no explicit "load" event I can attach a handler to. Firing on "reset" will cause infinite recursion since the function is itself changing the viewport of the map plus it seems to fire multiple times.
Basically, I just need to know when this should be called and how to wire a handler to do it at that time.
var map = $('#map').getKendoMap();var layer = map.layers[1];var markers = layer.items;var extent;for (var i = 0; i < markers.length; i++) { var loc = markers[i].location(); if (!extent) { extent = new kendo.dataviz.map.Extent(loc, loc); } else { extent.include(loc); }}map.extent(extent);.

function WindowToCenter() { var window = $('#windowEditArticle').data("kendoWindow"); window.center(); }
Hello,
I am stacked with this problem since 4 days.
I have two treeviews, the data of the first one is retrieved from my database as bellow :
@(Html.Kendo().TreeView() .Name("treeview-left") .Events(events => events .DragEnd("HierarchyDragEnd")) .HtmlAttributes(new { style = "height: 100%;" }) .DataTextField("name") .DragAndDrop(true) .DataSource(source => source .Model(m => m .Id("itemId") .HasChildren("haschildren") ) .Read(read => read .Action("GetCatalog", "ItemsSelection"))) .ExpandAll(true) )and the second treeview is empty, but i need to drag and drop items on it from the first tree and save in database :
@(Html.Kendo().TreeView() .Name("treeview-right") .Events(events => events .DragEnd("HierarchyDragEnd")) .HtmlAttributes(new { style = "height: 100%;" }) .DragAndDrop(true) .DataTextField("name") .DataSource(source => source .Model(m => m .Id("itemId") .HasChildren("haschildren") ) ) )I use the script bellow to get the information from the first tree but the script works just in case if i do drag and drop in the same tree:
function HierarchyDragEnd(e) { setTimeout(function () { var originDataItem = $("#treeview-left").data('kendoTreeView').dataItem(e.sourceNode); var originNodeId = originDataItem.id; var originNodeText = originDataItem.name; var destinationDataItem = $("#treeview-right").data('kendoTreeView').dataItem(e.destinationNode); var destinationNodeId = destinationDataItem.id; var destinationNodeText = destinationDataItem.name; destinationDataItem.add(originDataItem); var dropPosition = e.dropPosition; alert("Origin ID: " + originNodeId + "\nOrigin Text: " + originNodeText + "\nDestination ID: " + destinationNodeId + "\nDestination Text: " + destinationNodeText + "\nDrop Position: " + dropPosition); }, 100); }
Can someone pease help me to get all the information i need to save the dropped items in my database, maybe i am not using the right events or something else.
Thank you for your help.

<script id="SCTemplate" type="text/kendo-tmpl">
@(Html.Kendo().Grid<SCVM>()
.Name("grid_#=SCartID#") // template expression, to be evaluated in the master context
.Columns(columns =>
{
columns.Bound(c => c.ci.SCID).Hidden().HtmlAttributes(new { @id = "SCID" });
columns.Bound(c => c.ci.FN).Title("Name");
columns.Bound(c => c.ci.IN).Hidden(true);
columns.Bound(c => c.ci.FN).Title("Item Number").Width(150);
columns.Bound(c => c.ci.IsDO).Title("Order Type").ClientTemplate("#if(convertToBoolean(cosci)){#<span class='glyphicon glyphicon-envelope'>hello</span#}#").HtmlAttributes(new { @class = "js-bl" }) ;
The above is a code snippet from a Hierarchical Grid Template. What I am attempting to do is show an icon based on the value of "cosci". The issue is, this value is null. The type of this object is string. But when the page is hit, the value is gone. My Previous attempts had me set the object type to boolean. In all cases, it always came back as null. Interestingly enough, the c.ci.IsDO is "true", and it's type is boolean. Is it possible to have conditional statements in a child template? Please provide source files or a link to documentation that will shed light on the issue; but not http://demos.telerik.com/aspnet-mvc/grid/, as that link does not address the issue.
FWIW, the convertToBoolean is a function I was using in attempt to change the types to achieve my desired result(s), this fails, because the sequence in which the objects are loaded into the DOM is unexpected.
Thanks.
I am trying to enable range filtering using the EnableRangeFiltering property on a Grid column. The ShippedDate column in the following example demonstrates how to do it using webforms and server side binding, but I need an example using Razor and Ajax client side binding.
https://demos.telerik.com/aspnet-ajax/grid/examples/functionality/filtering/basic-filtering/defaultcs.aspx?show-source=true
Can you point me in the right direction?

@(Html.Kendo().Grid<GridLineItem>().Name("grid").Columns(columns => { columns.Bound(c => c.ReportName).Title("Status").ClientTemplate( "# if (HasError == true) { #" + "<img src='" + Url.Content("Images/error.png") + "'/>" + "# } else { #" + "<img src='" + Url.Content("Images/success.png") + "'/>" + "# } #" ); )
