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.
I'm working with the Kendo UI scheduler in pure javascript and I want to make changes to the recurrence editor.
I want to start with the EXACT javascript template that is used for the default scheduler edtitor, then make my changes.
Where can I find the default editor template source?
Thanks.
http://dojo.telerik.com/ACEri
(Scroll to the bottom to set the number of items in the multi.)
We all know ToDataSourceResult can be extremely slow with large data sets. A lot of times with comes down to this line:
result.Total = data.Count();
The "solution" has been to change the Kendo MVC source code or implement custom bingding.
I am sorry but this is not an acceptable "solution".
Make this call an extension method that one can override easily in our applications.
Best Regards
http://www.telerik.com/forums/unnecessary-(and-slow!)-sql-request-on-todatasourceresult
http://stackoverflow.com/questions/15843703/kendo-mvc-todatasourceresult-extremly-slow-with-large-iqueryable
https://www.google.no/search?q=kendo+result.Total+%3D+data.Count()%3B&oq=kendo+result.Total+%3D+data.Count()%3B&aqs=chrome..69i57.1071j0j7&sourceid=chrome&ie=UTF-8#q=kendo+ToDataSourceResult+slow
I was looking at thread dealing with two things:
I stumbled across this thread: listview make content ellipses and show tooltip when width of content exceeds 240px
Someone posted this utility method over there:
function gridHeaderTooltip( kendoGrid, tooltipPosition, filterSelector ) { kendoGrid.kendoTooltip({ filter: filterSelector, position: tooltipPosition, content: function (e) { var target = e.target; return $(target).text(); }, beforeShow: function (e) { var isActive = isEllipsisActive(e.target[0]); if (!isActive) { e.preventDefault(); } } });} function isEllipsisActive(e) { return (e.offsetWidth < e.scrollWidth);} kendo.ui.Tooltip.fn._show = function (show) { return function (target) { var e = { sender: this, target: target, preventDefault: function () { this.isDefaultPrevented = true; } }; if (typeof this.options.beforeShow === "function") { this.options.beforeShow.call(this, e); } if (!e.isDefaultPrevented) { show.call(this, target); } };}(kendo.ui.Tooltip.fn._show);How do I use this (or where do i plug it) to achieve my two points above?
I have a list view that has a SignalR datasource. I load the initial data fine and the sorting works properly on the timestamp. What I am trying to do, is update the list with either new items or an updated timestamp on an existing item using SignalR.
If I simply update a new item using the update method, I can see the timestamp change, but it stays in the same position. To work around this, I do a Destroy and then a Create. This works perfectly. The problem I am having, is that when a new item is sent it doesn't get inserted in to the list. I don't see any Javascript errors and I see the proper SignalR communication using the browser developer tools.
Hello.
Here is the example of wrong behavior - http://dojo.telerik.com/@paul/eWemi :
1. click 'Run' and right after that click 'Show Grid' - grid will be loaded with correct height;
2. click 'Run', wait 3-5 seconds and then click 'Show Grid' - data will be loaded on top of grid's layout;
Do you know how to fix it or any workarounds?
Thank you.
Paul