HI, I'm beginner for Telerik Platform with hybrid app. Sorry for this dummy question. I'm trying to load a scheduler with a web service which returns the following:
{"JSONDataResult":[{"Description":"Full Name","End":"\/Date(1458450000000-0500)\/","EndTimezone":null,"IsAllDay":true,"OwnerID":"1","RecurrenceException":null,"RecurrenceID":null,"RecurrenceRule":null,"Start":"\/Date(1458450000000-0500)\/","StartTimezone":null,"TaskID":"1","Title":"Full Name"},{"Description":"Full Name","End":"\/Date(1458450000000-0500)\/","EndTimezone":null,"IsAllDay":true,"OwnerID":"2","RecurrenceException":null,"RecurrenceID":null,"RecurrenceRule":null,"Start":"\/Date(1458450000000-0500)\/","StartTimezone":null,"TaskID":"2","Title":"Full Name"}]}
View model is the following, but it no works. What's wrong?. Thanks so much for your help.
var viewModel = kendo.observable({ isVisible: true, tasks: new kendo.data.SchedulerDataSource({ batch: true, transport: { read: { dataType: "json" }, parameterMap: function(options, operation) { if (operation !== "read" && options.models) { return {models: kendo.stringify(options.models)}; } } }, schema: { model: { id: "taskId", fields: { taskId: { from: "TaskID", type: "number" }, title: { from: "Title", defaultValue: "No title", validation: { required: true } }, start: { type: "date", from: "Start" }, end: { type: "date", from: "End" }, startTimezone: { from: "StartTimezone" }, endTimezone: { from: "EndTimezone" }, description: { from: "Description" }, recurrenceId: { from: "RecurrenceID" }, recurrenceRule: { from: "RecurrenceRule" }, recurrenceException: { from: "RecurrenceException" }, isAllDay: { type: "boolean", from: "IsAllDay" } } } } }) });The legend colors are not matching the colors I have set for the individual series in my bar chart. I have read through several different forum topics that were supposed to have a solution, but none of them seem to work. I am using hexadecimal web colors and assigning them to Series.Color as specified in "http://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/chart#configuration-series.color". How can I CUSTOMIZE or SET the legend colors as well? I have read the following forum topics, but neither solve the problem.
http://www.telerik.com/forums/legend-color-change#Feo0EzBZ6E6jA3Ns-3WOjQ
http://www.telerik.com/forums/stack-bar-chart#HvKBqPuqP023kBLIQHAnrA
I am using Kendo UI Grid with AngularJS. Some of my columns are narrow and the column headers don't display fully (they end in ... next to the filter icon). I want to display tooltip when I hover over them. I also want to display tooltip for every cell in the grid when I hover over them. I looked at some examples from this forum but they were showing tooltip only for a specific column. How can I display tooltips for all headers and cells?
Development details:
Kendo UI version: 2016.1.226
OS: Windows 8.1
Browser: Chrome 49, Firefox 45, IE 11
Editing the standard AngularJS grid sample will be helpful to us. If this has already been answered, kindly redirect me to the answers.
Thank you for your time.
I trying to map a simple JSON data from the web service to the Kendo UI AutoComplete, but I keep on getting Unexpected token : error. Below is the data set from the service, and the Kendo UI piece.
{
"d": [{
"__type": "Subscriber:#Entities",
"ContactEmail": null,
"ContactName": null,
"ContactPhone": null,
"FolderPath": null,
"Notes": null,
"OrganizationName": "Sample Holdings PLC",
"ProvisionAckReceived": "\/Date(-62135571600000-0700)\/",
"ProvisionFileSent": "\/Date(-62135571600000-0700)\/",
"Status": null,
"SubscriberUpdated": "\/Date(-62135571600000-0700)\/"
}, {
"__type": "Subscriber:#Entities",
"ContactEmail": null,
"ContactName": null,
"ContactPhone": null,
"FolderPath": null,
"Notes": null,
"OrganizationName": "Sample LLC",
"ProvisionAckReceived": "\/Date(-62135571600000-0700)\/",
"ProvisionFileSent": "\/Date(-62135571600000-0700)\/",
"Status": null,
"SubscriberUpdated": "\/Date(-62135571600000-0700)\/"
}, {
"__type": "Subscriber:#Entities",
"ContactEmail": null,
"ContactName": null,
"ContactPhone": null,
"FolderPath": null,
"Notes": null,
"OrganizationName": "Test LLC",
"ProvisionAckReceived": "\/Date(-62135571600000-0700)\/",
"ProvisionFileSent": "\/Date(-62135571600000-0700)\/",
"Status": null,
"SubscriberUpdated": "\/Date(-62135571600000-0700)\/"
}]
}
<script>
$("#search").kendoAutoComplete({
dataTextField: "OrganizationName",
minLength: 3,
dataSource: {
type: "odata",
transport: {
read: GetServiceUrl('SubscriberSubscriptionSearch'),
parameterMap: function () {
return { searchText: $("#search").data("kendoAutoComplete").value() };
}
},
schema: {
data: "d",
model: {
fields: {
OrganizationName: { type: "string" }
}
}
}
},
placeholder: " Search existing Subscribers/Subscriptions",
close: onClose
});
</script>
We are using the example chart at the moment trying to resize the donut, The doc say use seriesdefault.holeSize holeSize does not exists
The difference between the example code and others is
Example code
.SeriesDefaults(series => series.Donut()
.StartAngle(150)
Telerik Support code
seriesDefaults: {
holeSize: 20,
so using the example code below what's the way to resize the chart, also, Id like to know how to add values to the donut to show what value the % come from.
Thanks in advance
Example code used
<div class="demo-section k-content wide">
@(Html.Kendo().Chart()
.Name("EventPriorityGraph")
.ChartArea(chartArea => chartArea
.Background("transparent")
// .Width(200)
// .Height(200)
)
.Title(title => title
.Text("Events by priority")
.Position(ChartTitlePosition.Bottom)
)
.Legend(legend => legend
.Visible(false)
)
.SeriesDefaults(series => series.Donut()
.StartAngle(150)
)
.Series(series =>
{
series.Donut(new dynamic[] {
new {category = "P1",value = 0,color = "#ADC9D5"},
new {category = "P2",value = 0,color = "#5FCBFF"},
new {category = "P3",value = 0,color = "#49B4E7"},
new {category = "P4",value = 0,color = "#00689B"},
new {category = "Unknown",value = 100,color = "#002D42"},
})
.Name("2014");
series.Donut(new dynamic[] {
new {category = "P1",value = 1.72,color = "#ADC9D5"},
new {category = "P2",value = 3.41,color = "#5FCBFF"},
new {category = "P3",value = 17.45,color = "#49B4E7"},
new {category = "P4",value = 73.56,color = "#00689B"},
new {category = "Unknown",value = 3.83,color = "#002D42"},
})
.Name("2015");
series.Donut(new dynamic[] {
new {category = "P1",value = 1.61,color = "#ADC9D5"},
new {category = "P2",value = 2.51,color = "#5FCBFF"},
new {category = "P3",value = 16.247,color = "#49B4E7"},
new {category = "P4",value = 75.35,color = "#00689B"},
new {category = "Unknown",value = 4.26,color = "#002D42"},
})
.Name("2016")
.Labels(labels => labels
.Visible(true)
.Position(ChartPieLabelsPosition.OutsideEnd)
.Template("#= category #: \n #= value#%")
.Background("transparent")
);
})
.Tooltip(tooltip => tooltip
.Visible(true)
.Template("#= category # (#= series.name #): #= value #%")
)
)
</div>
How can I convert the following MVC scheduler's code to kendo syntax? I am converting Telerik MVC scheduler to kendo scheduler.
.Group(group => group.Resources("Techs").Orientation(SchedulerGroupOrientation.Vertical)) .Resources(resource =>{ resource.Add(m => m.TechName) .Title("Techs") .Name("Techs") .DataTextField("TechName") .DataValueField("emm_code") .DataColorField("Color") .DataSource(d => d.Read("Techs", "JOBS"));})
Thanks.

How I can cause the second combo box of cascading group of a combo boxes to automatically select the only item found after a user selects an item from the first combo box. While it may seem simply straight forward, it has proven quite difficult. JavaScript tricks such as select(0) or value(0) have not worked.
Thank you for your help,
Adam
I am using the setOptions method of the Kendo UI Grid to persist user options for columns, sorting, etc. I am storing the options in local storage of the browser.
I need to call setOptions when the view is displayed and the Grid has been created. It's a bit inconsistent, as sometimes when the grid.setOptions() is called, the grid object is undefined. How can I make sure that I don't call grid.setOptions until the grid is ready to use? Code snippet shown below.
$("#grid").kendoGrid({
});
var grid = $(_gridId).data("kendoGrid");
var options = localStorage['xxxx'];
if (options) {
grid.setOptions(JSON.parse(options));
}
