Hi I have a Kendo DropDownList with server filtering set with 3 min characters.
It works fine but when I bind the form, I have no data "inside" the control (autobind = false) and I had to set the text property to show the "selected value".
When user click on it to search an item, the control loose the text value.
When the popup close I expect the control show the text value yet, but If user doesn't select an item, the text value is empty.
I've tried to set the text value on close event but It doesn't works.
This is an example (read data property is set to unexists url but for this sample, data are useless)
Example: https://dojo.telerik.com/awuVEdEM/3
to reproduce 1. Run (see the text value) 2. click to open (loose text) 2. then click to close (the function call is correct but no text visible)
I need to persist the text property until user select something else, or to set it on close event.
Thank you
JavaScript is not my strong suit.
I'm looking at the source for a virtualization demo to see how it works and gets the performance it does. (my grid is terrible).
Could someone offer some commentary to the script below to help me understand and maybe learn something? Thanx!
generatePeople(count, function(data) { var initStart; var renderStart; $("#message").text(""); var nextId = data.length + 1; var dataSource = new kendo.data.DataSource({ pageSize: 20, transport: { create: function(e) { if (e.data.models) { //batch editing for (var i = 0; i < e.data.models.length; i++) { e.data.models[i].Id = nextId++; } e.success(e.data.models); } else { e.data.Id = nextId++; e.success(e.data); } }, read: function(e) { e.success(data); }, update: function(e) { if (e.data.models) { //batch editing e.success(e.data.models); } else { e.success(e.data); } }, destroy: function(e) { if (e.data.models) { //batch editing e.success(e.data.models); } else { e.success(e.data); } } }, schema: { model: { id: "Id", fields: { Id: { type: "number", editable: false, nullable: true }, FirstName: { type: "string", validation: { required: true } }, LastName: { type: "string" }, City: { type: "string" }, Title: { type: "string" }, } } } });
Hi,
I'm trying to implement the legend into my Pie Chart. I have two questions.
1.) I've noticed that if the user selects the an item in the legend, the data in the graph changes to either include or exclude that data items. I do not want my users to be able to do so in my graph. Is there a way to shut this off?
2.) I changed the marker in the legend to be a square instead of a slim rectangle. I can't figure out how to get my labels back to how they were originally, only with the new marker. I keep getting 'undefined' labels. Please review the code below and provide any clues.
$("#pie1").kendoChart({
chartArea: {
width: 500,
height: 500
},
title: {
position: "top",
text: "2017 "
},
seriesDefaults: {
labels: {
background: "transparent",
template: "#= category #: \n #= value#%"
}
},
series: [{
type: "pie",
startAngle: 150,
data: [{
category: "example 1",
value: 35.8,
color: "#f2ea39"
},{
category: "example 2",
value: 33.9,
color: "#0e1b2d"
},{
category: "example 3",
value: 16.4,
color: "#134475"
},{
category: "example 4,
value: 9.1,
color: "#507da8"
},{
category: "example 5",
value: 2.8,
color: "#b6c8db"
},{
category: "example 6",
value: 1.9,
color: "#fbf9c9"
}]
}],
tooltip: {
visible: true,
background: "#",
format: "#= category #: \n #= value#%"
},
legend: {
position: "bottom",
labels: {
font: "1em Avenir",
padding: 10
},
align: "center" ,
item:{
visual: function (e) {
var color = e.options.markers.background;
var labelColor = e.options.labels.color;
var rect = new kendo.geometry.Rect([0,0],[150,100]);
var layout = new kendo.drawing.Layout(rect, {
spacing: 5,
alignItems: "center"
});
var marker = new kendo.drawing.Path({
fill: {
color: color
}
}).moveTo(0, 0).lineTo(0, 15).lineTo(15, 15).lineTo(15, 0).lineTo(0, 0).close();
var label = new kendo.drawing.Text(e.series.data.category, [0, 0], {
fill: {
color: labelColor
}
});
layout.append(marker, label);
layout.reflow()
return layout;
}
}
}
});
Thank You!
Hello,
I have a specific request - enable user to display and select date range when click on the single button or on text box. Behavior of date picker suits fine, but unfortunately it lacks ability to select date range. On the other side, calendar widget has ability to select date range, but I cannot figure out how to bind it to the text box and show - hide on demand.
Is there any way to achieve this?
Thank you in advance.
Regards,
Vedad
Hi
Our company report the export issue with special characters and implemented the solution which has work great, thank you, until now.
https://www.telerik.com/forums/excel-export-with-special-characters
Telerik wrote a custom JS method for us as a workaround but it doesn't appear to cover every case,
We wanted to know if any long term fixes been made to deal with every case for special characters ... we are currently using version
Kendo UI v2017.3.1026
Any insight would be appreciated
Thanks
How can I create datetime range filter. I saw some examples with date range in telerik forum but never seen a datetime range filter implementation.
I want to filter BirthDate field with range selection. IE. first range 10/9/1966 21:00 second one 11/9/1966 15:00

Hi,
Trying to implement a design for a bar chart where all the values are positive, we want the bars to "float" above the x-axis, think of it as a way to have a fixed margin between the x-axis and the bar bottom (value = 0) (assume that the x-axis shows up at -10 instead of 0 - but we do not want the bars to extend all the way to the x-axis
Any ideas how to implement this?
Hi,
We are using the scheduler control with two resources.
resources: [
{
field: "company"'
name: "Company",
dataSource: [
{ text: "Company 1", value: 1, color: "#6eb3fa" },
{ text: "Company 2", value: 2, color: "#f58a8a" }
],
title: "Company"
},
{
field:
"employee",
name: "Employee",
dataSource: [
{ text: "Alex", value: 1, color: "#f8a398" },
{ text: "Bob", value: 2, color: "#51a0ed" },
{ text: "Charlie", value: 3, color: "#56ca85" }
],
title: "Employee"
}
]
And we use the two resources to group the scheduler.
group: {
resources: "Company", "Employee"],
orientation: "vertical"
}
But in our scenario we do not have employees who work for
more than one company. There is an one-one mapping between the
employee-company.
So I would like to if there is a possibility to
hide/not-display or disable the group catergories created without data.
Example:
Company
Employees
1
Alex, Bob
2
Charlie, Daphne
So I would like to hide the groups 1-Charlie, 1-Daphne and
2-Alex, 2-Bob in the scheduler as there 4 section will always be empty.

Hello,
The PDF generated by kendo chart seems to have a problem dealing with accents. I attached an image showing 3 export made from the same chart. Please note that Montréal is displayed correctly in the PNG and the SVG but not in the PDF.
This issue is not only the the categories, it also occurs in the title and legend.
Can you confirm if this is a bug and if it could get fixed?
Best regards,
Simon