Say I create a new surface:
var surface = draw.Surface.create($("#surface"));
Now in a different part of the program I want get that existing surface. In other kendo widgets I can do for example $("#surface").data("kendoGrid")
but I can't seem to figure out how to do the same thing with a drawing surface.
I was using the MVC Sample app to build our usage of the TreeMap, and we couldn't get the Color Range to work on the map like is shown in this demo
MVC TreeMap Demo
Then we dug through the JS samples and realized the color range was set as an option in the sample. I believe the MVC sample could use this to improve the user experience of starting with code that looks like what is shown.
.Colors(color =>
{
color.AddRange("#0072c6", "#cbe2f3");
color.AddRange("#5db2ff", "#deeffe");
color.AddRange("#ff8f32", "#cbe7d0");
color.AddRange("#82ba00", "#e5f0cb");
color.AddRange("#ff8f32", "#fee8d5");
color.AddRange("#9e0a61", "#eccedf");
color.AddRange("#ac193d", "#eed0d7");
})
Thank you
Hello,
We've found out browsers cannot handle more than about 4,000 rows, so we are enabling server pagination. We have the following configuration:
01.
var
newDs =
new
kendo.data.DataSource({
02.
transport: {
03.
// read: gridLoadCall
04.
read:
function
(options) {
05.
gridLoadCall +=
"&page="
+ options.data.page +
"&pageSize="
+ options.data.pageSize
06.
$.ajax({
07.
url: gridLoadCall,
08.
datatType:
"json"
,
09.
success:
function
(result) {
10.
options.success(result);
11.
},
12.
error:
function
(result) {
13.
options.error(result);
14.
}
15.
});
16.
},
17.
},
18.
update:
function
(e) {
return
true
; },
19.
serverPaging:
true
,
20.
pageSize: 4000,
21.
serverSorting:
true
,
22.
schema: {
23.
total:
function
(response) {
24.
console.log(
"total: "
+ 165502);
25.
return
16502;
26.
},
27.
model: {
28.
...
(The total number of records is hardcoded because we are testing at this stage and we know the result set size beforehand).
The first page of data is displayed correctly, and the navigation bar is displayed, but empty. That is, on page 0, with no page buttons, back/forward buttons are not responding, and the message "No records" is displayed.
Any help, very welcomed.
Edo.
Hello,
I have the below Use Case where:
I need to pass the application specific parameters to the server with proxy enabled.
Below is the sample code that has the proxyParameters. Using these proxyParameters I would be processing the pdf document on the server.
$("#editor").kendoEditor({
tools: ["pdf"],
pdf:{
filename: "MyDocument.pdf",
proxyURL: "/myProxyURL",
proxyParameters: myParameter,
forceProxy: true,
paperSize: "auto"
},
pdfExport:function(e){
e.preventDefault()
}
});
Could you please help?
Hello,
A Angular Custom Directive that is use with the k-ng-model, stop to work after the Kendo UI v2016.3.xxxx version, but it was use to work with the Kendo UI 2015.3.xxxx version.
When is used only "ng-model" instead of the "k-ng-model, the error vanish, but a a new kind o error start, the word typed is salved with weird caracters like these: "&alt;strong>test&alt;/strong>", however the correct would be save like this way: <strong>test</strong>.
Thank you!
Hi,
I am trying to implement multirow headers in the jquery spreadsheet widget.
Please refer to the attached excel screenshot of what i am trying to do.
All the examples i see render the data directly through sheets.rows.cells configuration.
But I am binding the data from a datasource and setting the custom column headers using setDataSource function.
Everything is rendering fine with the custom column headers in row 1 and the date from row 2 onwards.
But I want to set a header for I2 to L2 and M2 to P2 in row 1 and then my custom column headers in row 2 and the data from row 3.
Can you please point me to the correct way of implementing this.
I'm having difficulty using the autoComplete in a popup editor template.when the datasource for the autocomplete has separate value and text fields.
This example works fine if we use the firstName for both the data-value-field and data-text-field.
However, if we change the datasource to include a "fullname" property:
var autoCompleteDS = new kendo.data.DataSource({
data: [
{firstName: "Alex", fullName:"Alex Smith"},
{firstName: "Alice", fullName:"Alice Smith"},
{firstName: "Antony", fullName:"Antony Smith"},
{firstName: "Anne", fullName:"Anne Smith"},
{firstName: "Anna", fullName:"Anna Smith"}
]
});
And configure the autocomplete to reference this property:
<
input
name
=
"FirstName"
data-bind
=
"value:FirstName"
data-value-field
=
"firstName"
data-text-field
=
"fullName"
data-source
=
"autoCompleteDS"
data-role
=
"autocomplete"
/>
When we add a record, the record's firstName field is set to the fullName. I obviously have the binding specified incorrectly but I can't figure out what I've done wrong.
Thanks,
Todd
Hi, I'm experimenting with the Timeline view of the scheduler control and having issues getting the horizontal scrollbar to display on IE11. The horizontal scroll displays fine in chrome so I was wondering if this is a known issue, or just something that I have not set.
I'm using angular js and have declared my scheduler like so:
<div kendo-scheduler=
"myScheduler"
k-options=
"vm.SchedOptions"
kendo-droptarget>
<div k-event-template>
<label>{{dataItem.title}}</label>
</div>
</div>
'vm.SchedOptions' is defined in the typescript, shown below:
private SetupScheduler() {
var
observableDataSource =
new
kendo.data.SchedulerDataSource({
data:
this
.observableData,
schema: {
model: {
id:
"taskId"
,
fields: {
taskId: { from:
"id"
, type:
"number"
},
title: { from:
"title"
, defaultValue:
"No title"
, validation: { required:
true
} },
start: { type:
"date"
, from:
"start"
},
end: { type:
"date"
, from:
"end"
},
isAllDay: { type:
"boolean"
, from:
"isAllDay"
}
}
}
}
});
var
startTime = moment().toDate();
startTime.setHours(4);
startTime.setMinutes(0);
startTime.setSeconds(0);
var
endTime = moment().toDate();
endTime.setHours(18);
endTime.setMinutes(0);
endTime.setSeconds(0);
var
viewSettings: kendo.ui.SchedulerView = {
type:
'timeline'
,
eventHeight: 85,
startTime: startTime,
endTime: endTime,
showWorkHours:
false
}
this
.SchedOptions = {
date:
this
.SelectedStartDate,
startTime:
this
.SelectedStartDate,
majorTick: 60,
views: [
viewSettings
],
dataSource: observableDataSource,
group: {
resources: [
"Users"
],
orientation:
"vertical"
},
resources: [
{
field:
"users"
,
name:
"Users"
,
dataSource: [],
multiple:
true
,
title:
"Users"
}
]};
}
Are there any properties that I can set to force the horizontal scrollbar to show in IE11?
Thanks.
Stewart.