Telerik Forums
Kendo UI for jQuery Forum
3 answers
346 views

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?

Alex Gyoshev
Telerik team
 answered on 02 Aug 2016
2 answers
267 views

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!

 

Erik Stell
Top achievements
Rank 1
 answered on 01 Aug 2016
2 answers
285 views

When calling setOptions, custom actions is not working anymore.

Demo.

Seyfor
Top achievements
Rank 1
 answered on 01 Aug 2016
2 answers
307 views

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.

David
Top achievements
Rank 1
 answered on 01 Aug 2016
3 answers
700 views

http://dojo.telerik.com/ACEri

 

(Scroll to the bottom to set the number of items in the multi.)

rwb
Top achievements
Rank 2
 answered on 01 Aug 2016
2 answers
666 views

 

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

 

 

 

 

Trond
Top achievements
Rank 1
 answered on 01 Aug 2016
3 answers
334 views

I was looking at thread dealing with two things:

  • Truncate long values by showing '...' in order to maintain the row height standard throughout the grid
  • Activate tool-tip to show the complete cell value

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?

Dimiter Topalov
Telerik team
 answered on 01 Aug 2016
4 answers
417 views

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.

Boyan Dimitrov
Telerik team
 answered on 01 Aug 2016
1 answer
126 views
Does the Kendo UI version of the scheduler control support special slots?  We are porting an application from Silverlight, but are concerned that the Kendo version of this control does not support the features we need - specifically read-only slots that are visibly different from other slots on the scheduler, that are generated using recurrence patterns.
Georgi Krustev
Telerik team
 answered on 01 Aug 2016
1 answer
104 views

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

Alexander Popov
Telerik team
 answered on 01 Aug 2016
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
DatePicker
Spreadsheet
Upload
ListView (Mobile)
ComboBox
TabStrip
MultiSelect
AutoComplete
ListView
Menu
Templates
Gantt
Validation
TreeList
Diagram
NumericTextBox
Splitter
PanelBar
Application
Map
Drag and Drop
ToolTip
Calendar
PivotGrid
ScrollView (Mobile)
Toolbar
TabStrip (Mobile)
Slider
Button (Mobile)
Filter
SPA
Drawing API
Drawer (Mobile)
Globalization
LinearGauge
Sortable
ModalView
Hierarchical Data Source
Button
FileManager
MaskedTextBox
View
Form
NavBar
Notification
Switch (Mobile)
SplitView
ListBox
DropDownTree
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
ColorPicker
Pager
Styling
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
Licensing
ScrollView
Switch
TextArea
BulletChart
QRCode
ResponsivePanel
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
TimePicker
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
BottomNavigation
Ripple
SkeletonContainer
Avatar
Circular ProgressBar
FlatColorPicker
SplitButton
Signature
Chip
ChipList
VS Code Extension
AIPrompt
PropertyGrid
Sankey
Chart Wizard
OTP Input
SpeechToTextButton
InlineAIPrompt
StockChart
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
SmartPasteButton
PromptBox
SegmentedControl
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?