Pasting a large (>500kb) image into the editor in IE 11 renders the browser frozen for a significant time.
To reproduce:
1. Go here: http://demos.telerik.com/kendo-ui/editor/index
2. Open any image greater than 500kb in MS Paint. A larger image will make the problem worse.
3. Select all and copy the image.
4. Paste into the demo editor.
On my i7 machine, this takes around 24 seconds to unfreeze, and then the image is pasted normally. No other browsers exhibit this behavior.
After digging through the Editor source code, and placing timers in several locations within the "paste" function, I found that there is quite a bit of DOM manipulation going on, without the clipboard content being validated in any way.
My question is this: what is the best way to stop the execution of the paste function based on the size of the clipboard data? Is there something already within the Editor API that I'm missing? PasteCleanup doesn't fire until after the paste event, so a custom function there doesn't help. What I really need is something like a maxPasteSize option in the Editor instantiation, that will reject anything over that without manipulating the DOM.
@(Html.Kendo().Chart(Model)
.Name(
"ChartTest"
)
.Legend(l => l.Visible(
true
))
.Series(series =>
{
series.Column(x => x.WebSite01);
series.Column(x => x.WebSite02);
series.Column(x => x.WebSite03);
series.Column(x => x.WebSite04);
series.Column(x => x.WebSite05);
series.Column(x => x.WebSite06);
series.Column(x => x.WebSite07);
series.Column(x => x.WebSite08);
series.Column(x => x.WebSite09);
}
)
.SeriesDefaults(s => s.Column().Stack(
true
))
.Legend(l => l.Position(ChartLegendPosition.Bottom))
.CategoryAxis(axis => axis
.Categories(model => model.ChartDateStamp)
.MajorGridLines(lines => lines.Visible(
false
))
.Labels(l =>
{
l.Format(
"MM/yy"
);
l.Rotation(90);
})
)
.Tooltip(t => t
.Visible(
true
)
.Color(
"#FFFFFF"
)
.Background(
"#0000CC"
)
.Template(
"${series.name} : #= kendo.toString(value, 'n') #"
)
)
)
Hi,
When retrieving data from a model whats the difference between using "viewModel.attr" and "viewModel.get('attr')" ?
Both return the same object.
Thanks,
Grant
I'm trying to create a Comboxbox with server side paging and a custom transport read, i can't get it to work so i made a small ex-sample.
If you run the example it isn't possible to scroll "below" the already loaded items, so there isn't another read to get the next 10 items
https://dojo.telerik.com/eHaJU/5
$(
"#orders"
).kendoComboBox({
dataTextField:
"text"
,
dataValueField:
"value"
,
dataSource: {
serverPaging:
true
,
schema: {
data:
"data"
,
total:
"total"
},
pageSize: 10,
transport: {
read:
function
(options) {
var
data = getData(options.data.page);
options.success(data);
}
},
update:
function
() {}
}
});
function
getData(page)
{
var
dataArr = [];
for
(
var
i = 0; i < 10; i++)
dataArr.push({ text:
"Item "
+ (i + 1) +
" on page "
+ page, value: 1});
return
{data: dataArr, total: 100};
}
how to print alphabetically items in multiselect?
<select id="item-a" data-role="multiselect"Hi folks,
I have a datasource bound spreasheet. When I enter a value in a cell, the change is reflected in the datasource. That's good.
A1
Now, I enter a formula, =SUM(A1:B1), in cell C1, on the first time I input the formula in C1, the bound datasource gets the sum value correctly. Then I change value in cell A1 from 100
Hi!
I am using kendo spreadsheet to batch-edit a list of values.
In the last version available, if I change a value, I lose the format (I append a currency to the number; currency that can be different in each cell). That's removed after I update the value
Here's a demo:
http://dojo.telerik.com/AyOXo/13
Try to change the value of the amount in the cell to something else.The currency (SEK/USD will dissapear from the format)
Thanks!
Hello,
Is it possible to localize the Column Title in the Grid component?
For instance, in the following example, I would like to show Name or Nom depending on the user's locale.
$("#grid").kendoGrid({
dataSource:remoteDataSource,
height: 550,
groupable: true,
sortable: true,
resizable: true,
pageable: {
refresh: true,
pageSizes: true,
buttonCount: 5
},
columns: [{
field: "name",
title: "Name",
width: 400
},
Cheers,
Paul