Telerik Forums
Kendo UI for jQuery Forum
1 answer
223 views

Hi,

is there a way to position X-Axis labels on the top of the chart instead of bottom?

 

Thank you!

Iliana Dyankova
Telerik team
 answered on 02 Aug 2016
7 answers
451 views

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.

fabian
Top achievements
Rank 1
 answered on 02 Aug 2016
3 answers
360 views
How can I disable grid (like editors enabled property). I want to prevent everything (scrolling, sorting, paging, grouping, selection ...)?
Boyan Dimitrov
Telerik team
 answered on 02 Aug 2016
1 answer
334 views

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..

Georgi Krustev
Telerik team
 answered on 02 Aug 2016
3 answers
176 views

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

Kiril Nikolov
Telerik team
 answered on 02 Aug 2016
5 answers
161 views

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

Kiril Nikolov
Telerik team
 answered on 02 Aug 2016
1 answer
137 views

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

 

 

 

Alex Gyoshev
Telerik team
 answered on 02 Aug 2016
3 answers
341 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
257 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
280 views

When calling setOptions, custom actions is not working anymore.

Demo.

Seyfor
Top achievements
Rank 1
 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
ScrollView
Switch
TextArea
BulletChart
Licensing
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
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
TimePicker
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?