I would like to set the maxDateGroups based on the width of the chart. Some people have big monitors and some have small, so I would like to adjust the number of points shown based on the screen (chart) size. Is there a way to calculate the number to set on maxDateGroups such that the dates don't start overlapping or look too crowded on the x axis?
Thanks
Hello,
Here: http://dojo.telerik.com/IkEna, I changed the editable config from true to "popup" and, when attempting to add a new record, everytime the popup window displays it just disappears. It seems there is a timing issue with the display of the kendo.ui.Window object and either the execution of the ws request or the invocation of the success callback, which is options.success invoked as
callback(result);Not sure there ... any hints?
Dan
I'm trying to disable sorting and filtering on a column in a grid that I created from a <table></table>. Here is the table:
<table id="vehicleList"> <colgroup> <col style="width: 115px;" /> <col style="width: 185px;" /> <col style="width: 135px;" /> <col style="width: 145px;" /> <col style="width: auto;" /> <col style="width: 255px;" /> </colgroup> <thead> <tr> <th data-field="Number">Number</th> <th data-field="VehicleType">Type</th> <th data-field="LicensePlate">License</th> <th data-field="VIN">VIN</th> <th data-field="Pool">Pool</th> <th data-field="Buttons"> </th> </tr> </thead> <tbody> @foreach (var v in Model) { <tr> <td>@v.Number</td> <td>@v.VehicleType.Name</td> <td>@v.LicensePlate</td> <td>@v.VIN</td> <td>@v.Pool.Description</td> <td> <input type="button" class="roundedButton blue updateVehicle" value="Update" data-vehicleid="@v.VehicleId" style="z-index: 999;" /> <input type="button" class="roundedButton activateVehicle @(v.Active ? "orange" : "green")" value="@(v.Active ? "Deactivate" : "Activate")" data-vehicleid="@v.VehicleId" /> <input type="button" class="roundedButton red deleteVehicle" value="Delete" data-vehicleid="@v.VehicleId" /> </td> </tr> } </tbody></table>And here is my code to create the Kendo Grid:
$("#vehicleList").kendoGrid({ pageable: { pageSizes: [5, 10, 25, 50, 100], pageSize: 5, buttonCount: 5 }, filterable: true, sortable: true });I tried this (found a thread on StackOverflow), but the columnsConfig variable is undefined so it's not working:
var grid = $("#vehicleList").data("kendoGrid");var columnsConfig = grid.options.columns;columnsConfig[5].filterable = false;columnsConfig[5].sortable = false;
grid.setOptions({ columns: columnsConfig });Hi,
What would be the best approach to sorting a data source and only displaying the top 10 and the bottom 10 of the data source (json call) for a bar chart using MVVM?
Thanks,
Julien
Hi there.
Now I'm using the Kendo UI ver.2015.1429 and found the issue which does not show "data-placeholder" value on combobox at very first time when combobox is loaded.
But once I try to select any value from combobox it showed me "data-placeholder" value. So is there anyway to fix this problem? Or there will be new release soon?
you can reproduce this issue on combobox demo page.
Thanks.
Jin
Hello,
I have the following code that works fine in javascript.
kendo.drawing.drawDOM($(".content-wrapper"))
but when I switched over to Typescript, I get the following error.
Argument of type 'JQuery' is not assignable to parameter of type 'HTMLElement'
HTMLElement is defined in ..\typescript\kendo.all.d.ts as
interface HTMLElement {
kendoBindingTarget: kendo.data.BindingTarget;
}
BindingTarget is defined as
class BindingTarget {
target: any;
options: any;
source: any;
}
How do I convert the following code to typescript?
kendo.drawing.drawDOM($(".content-wrapper"))
Hello,
Our Delete API uses a POST operation and accepts just the key of the event to be deleted. I found a post which demonstrates modifying the payload in the transport.parameterMap during the "destroy" operation and this works just fine except an exception occurs after the successful call (see attached).
I suspect it is because I am not returning a true "event" body, like occurs for the create/update operations.
Would it be better to hook the "remove" event, make my own Ajax call, and then return preventDefault()? If so, what is the recommended approach for removing the event from the Scheduler without calling removeEvent() (which itself ends up provoking the remove() function).
Thanks.
Sam.
<div class="form-group"> @Html.LabelFor(model => model.locationCode, new { @class = "control-label col-md-2" }) <div class="col-md-10"> @Html.DropDownListFor(model => model.locationCode, new SelectList(Model.Locations)) @Html.ValidationMessageFor(model => model.locationCode) </div> </div> <div class="form-group"> @Html.LabelFor(model => model.loadType, new { @class = "control-label col-md-2" }) <div class="col-md-10"> @Html.DropDownListFor(model => model.loadType, new SelectList(Model.LoadTypes)) @Html.ValidationMessageFor(model => model.loadType) </div> </div> <div class="form-group"> @Html.LabelFor(model => model.loadDescrip, new { @class = "control-label col-md-2" }) <div class="col-md-10"> @(Html.Kendo().ComboBox() .Name("loadDescription") .Filter(FilterType.Contains) .DataSource(source => { source.Read(read => { read.Action("GetCascadeDocumentNumbers", "DockDoor") .Data("filterLoadDescription"); }) .ServerFiltering(true); }) .Enable(false) .AutoBind(false) .CascadeFrom("loadType") ) <script> function filterLoadDescription(){ return { locCode: $("#locationCode").val(), loadType: $("#loadType").val(), docNumFilter: $("#loadDescription").data("kendoComboBox").input.val() }; } </script> @Html.ValidationMessageFor(model => model.loadDescrip) </div> </div>public JsonResult GetCascadeDocumentNumbers(string locCode, string loadType, string docNumFilter) { var docNums = db.GetCurrentDocumentNumbers(locCode, loadType).AsQueryable(); if (!string.IsNullOrWhiteSpace(docNumFilter)) { docNums = docNums.Where(x => x.Contains(docNumFilter)); } return Json(docNums.Select(x => new {DocCode = x}), JsonRequestBehavior.AllowGet); }