Hi,
is there a way to position X-Axis labels on the top of the chart instead of bottom?
Thank you!
Hi,
I'm trying to change the gaps between the pionts of a line chart series depending on user input (watch pic). I searched for quiet a while but I cant find any answers.
pls help.
I'm using Kendo scheduler with angular js and here is my schedulerOptions.
My requirement-I want to trigger a function on change of a date/select week /select day/month option .
But unfortunately the change function is not triggering any event.
Here is the code..
$scope.schedulerOptions = {
date: new Date(),
startTime: new Date(),
height: 800,
views: [
"day",
"week",
"month",
{ type: "month", selected: true }
],
change: scheduler_change,
eventTemplate: $("#event-template").html(),
editable: {
destroy: false, //removes close button from the label
template: $("#editor").html()
},
edit: onEditClick,
timezone: "Etc/UTC",
dataSource: {
batch: true,
data: outputTypeArray,
schema: {
model: {
id: "id",
fields: {
id: { from: "id", type: "number" },
title: { from: "name", defaultValue: "NA", validation: { required: true } },
name: { from: "name", defaultValue: "NA", validation: { required: true } },
status: { from: "status", defaultValue: "NA", validation: { required: true } },
trip: { from: "trips", defaultValue: "NA", validation: { required: true } },
client: { from: "client", defaultValue: "NA", validation: { required: true } },
start: { type: "date", from: "start" },
end: { type: "date", from: "end" },
colorId: { from: "colorId" }
}
}
}
},
footer: false
};
}
function scheduler_change(e) {
var start = e.start; //selection start dates
var end = e.end; //selection end date
var slots = e.slots; //list of selected slots
var events = e.events; //list of selected Scheduler events
var message = "change:: selection from {0:g} till {1:g}";
if (events.length) {
message += ". The selected event is '" + events[events.length - 1].title + "'";
}
console.log(kendo.format(message, start, end));
}
Can you please help me on this..
Hi. I am working on an Angular project which used Kendo Grid. I am aware that I can use the columnMenu property to give users the ability to filter columns that they want to see. Is there any way I can show some columns as default?
This is my first post. please bear with me.
-AZ
Hi,
KendoUI comes with Angular v1.4. Can I replace that with Angular v1.5 without getting any issues with the KendoUI widgets?
Best Regards
Hi all,
It seems that TreeView can't show nodes children if model has a property called exactly 'children'.
For example it doesn't show child nodes if bound to model like this:
var inline = new kendo.data.HierarchicalDataSource({ data: [ { categoryName: "Storage", subCategories: [ { subCategoryName: "Wall Shelving" }, { subCategoryName: "Floor Shelving" }, { subCategoryName: "Kids Storage" } ], children:[] }, { categoryName: "Lights", subCategories: [ { subCategoryName: "Ceiling" }, { subCategoryName: "Table" }, { subCategoryName: "Floor" }], children:[] } ], schema: { model: { children: "subCategories" } }});
This is an example:
http://dojo.telerik.com/OQuFo
It's a bug or is intended?
Adolfo Marinucci
Hi there,
i just couldn't figure it out wich *.less files (and in what order) i have to import to get a correct css file.
My current approach is the following:
@theme: 'material';
@theme: 'office365';
@theme: 'metro';
@asset-path: "http://kendo.cdn.telerik.com/2016.2.714/styles/";
@theme-folder: e(`@{theme}.charAt(0).toUpperCase() + @{theme}.slice(1)`);
@import "kendo/web/kendo.@{theme}.less";
@image-folder: "@{asset-path}@{theme-folder}";
@import "kendo/web/kendo.common.core.less";
@import (optional) "kendo/web/kendo.common-@{theme}.core.less";
@import "kendo/web/kendo.common.less";
@import (optional) "kendo/web/kendo.common-@{theme}.less";
@import "kendo/web/kendo.@{theme}.mobile.less";
// kendo core files fix
@font-face {
font-family: "Kendo UI";
src: url("@{asset-path}images/kendoui.woff?v=1.1") format("woff"),
url("@{asset-path}images/kendoui.ttf?v=1.1") format("truetype"),
url("@{asset-path}images/kendoui.svg#kendoui") format("svg");
}
There are no errors, but some style just dont fit.
Bonus Question: If I want to use the type-custom.less from the theme builder, where did i have to add this file?
This is what I hope is a simple chart configuration issue, but after several hours of back and forth with the code, something is eluding me.
I am creating a simple line chart that should display the count of specific errors over the course of a given date range. The series should be the error message's themselves (ie, error 1, error 2, et al)
The MVC controller is happily returning data back to me in this form:
[ { "ErrorMessage":"error 1", "ErrorCount":11, "ReportDate":"2016-06-01T00:00:00" }, { "ErrorMessage":"error 1", "ErrorCount":12, "ReportDate":"2016-06-02T00:00:00" }, { "ErrorMessage":"error 1", "ErrorCount":23, "ReportDate":"2016-06-03T00:00:00" }, { "ErrorMessage":"error 1", "ErrorCount":1, "ReportDate":"2016-06-04T00:00:00" }, { "ErrorMessage":"error 101", "ErrorCount":128, "ReportDate":"2016-06-01T00:00:00" }, { "ErrorMessage":"error 101", "ErrorCount":137, "ReportDate":"2016-06-02T00:00:00" }, { "ErrorMessage":"error 101", "ErrorCount":134, "ReportDate":"2016-06-03T00:00:00" }, { "ErrorMessage":"error 101", "ErrorCount":43, "ReportDate":"2016-06-04T00:00:00" }, { "ErrorMessage":"error 103", "ErrorCount":1, "ReportDate":"2016-06-01T00:00:00" }, { "ErrorMessage":"error 103", "ErrorCount":3, "ReportDate":"2016-06-02T00:00:00" }, { "ErrorMessage":"error 103", "ErrorCount":2, "ReportDate":"2016-06-03T00:00:00" }, { "ErrorMessage":"error 103", "ErrorCount":1, "ReportDate":"2016-06-04T00:00:00" }, { "ErrorMessage":"error 11", "ErrorCount":118, "ReportDate":"2016-06-01T00:00:00" }, { "ErrorMessage":"error 11", "ErrorCount":100, "ReportDate":"2016-06-02T00:00:00" }, { "ErrorMessage":"error 11", "ErrorCount":163, "ReportDate":"2016-06-03T00:00:00" }, { "ErrorMessage":"error 11", "ErrorCount":32, "ReportDate":"2016-06-04T00:00:00" }]It breaks out each type of error message by how many occurred for each day. I would imagine that in order to get it to display correctly in the chart, a group option should be used, which I have tried:
@(Html.Kendo().Chart<ErrorInfoModel>() .Name("errorChart") .Title("Errors") .Legend(legend => legend.Position(ChartLegendPosition.Top)) .DataSource(ds => ds.Read(read => read.Action("GetErrorsByDays", "Metrics")) .Group(group =>{ group.Add(model => model.ErrorErrorMessage); }) ) .Series(series => { series.Line(model => model.ErrorCount, categoryExpression: model => model.ReportDate).Name("#= group.value #").Aggregate(ChartSeriesAggregate.Count); }) .CategoryAxis(axis => axis.Categories(model => model.ReportDate).Date().BaseUnit(ChartAxisBaseUnit.Days)) .ValueAxis(axis => axis.Numeric().Line(line => line.Visible(true)).AxisCrossingValue(-10))) However, after several permutations of group, aggregates, etc I still cannot get the chart to display the data. I can only assume that there is something really simple I am missing, or else the structure of my returned data is not suitable for what I am trying to do.
Thanks in advance!
When calling setOptions, custom actions is not working anymore.
Demo.