Hi Kendo Team,
I think I may have found a bug but it would be nice if I could confirm it with you guys.
My team has been trying to wrap our code where we attach custom editors to cell ranges inside of a sheet.batch call to optimize the speed of our application.
However we noticed that when we do this, it seems to cause the custom editors to break (whether they are list dropdowns or date pickers).
You can replicate it in the kendo demo you guys have here:
http://docs.telerik.com/kendo-ui/controls/data-management/spreadsheet/how-to/validation-to-column
If you scroll to the very bottom of the edit section of the demo and change where you apply the validation rule by enabling showButton and putting it inside a sheet.batch, you will see that the dropdown list selectors in the demo preview will not work at all (they appear but nothing is displayed).
//Apply the validation rule
$("#spreadsheet").data("kendoSpreadsheet").activeSheet().batch(function () {
range.validation({
dataType: "list",
from: "ListValues!A$1:B$1",
allowNulls: true,
type: "reject",
titleTemplate: "Invalid value",
messageTemplate: "Valid values are 'true' and 'false'."
});
});
In fact, if you replace that range.validation with a different type of validation like the date picker, it will also break - the icons will be displayed when selecting the cell but clicking the icon brings up an empty date picker that does not work.
$("#spreadsheet").data("kendoSpreadsheet").activeSheet().batch(function () {
range.validation({
dataType: "date",
showButton: true,
comparerType: "between",
from: "DATEVALUE(\"1/1/1900\")",
to: "DATEVALUE(\"1/1/1998\")",
allowNulls: true,
type: "reject",
titleTemplate: "Birth Date validaiton error",
messageTemplate: "Birth Date should be between 1899 and 1998 year."
});
});
For whatever reason by putting the custom editors into the batch calls, it seems to be losing the "from" range to check against (seeing as the red arrow still works and the messageTemplate also displays properly on hover.
Thoughts?
Thanks,
Jeff
You know the default number of rows is 200, columns is 50. I want to set the number of rows and columns dynamically according to the data getting from controller code. Because the data length is not a fixed value, so how can I set the number of rows and columns dynamically by a method? please give example.
Hi all,
Is there a way to embed a custom font in the SVG when exporting a DOM as SVG?
Thank you

Hello,
I want to add visible line to an area chart, so it looks like the charts in Windows Performance monitor. Is it possible to do so? Other option is to add fill to a line chart. I can't find a way how to do either of that.
Thanks!
Zak
Hi!, I'm having a problem using headerAttributes on a kendo ui Grid column.
var columnas = [];
columnas.push({
headerAttributes: {
style: "font-size: 14px" }, title: "Desc", field: "nombre", width: 170, groupFooterTemplate:
groupFooterTemplatePadre,
footerTemplate: FooterTemplate});
grid = $("#grid").kendoGrid({ dataSource: dataSource, groupable: false, pdf: { allPages: true, avoidLinks: true, paperSize: "auto", margin: { top: "1cm", left: "1cm", right: "1cm", bottom: "1cm" }, landscape: true, repeatHeaders: false, scale: 0.4 }, resizable: false, editable: !viewModelTitulo.cerrada, selectable: "row", navigatable: true, scrollable: true, columns: columnas, dataBound: function(e){ var rows = e.sender.tbody.children(); for (var j = 0; j < rows.length; j++) { var row = $(rows[j]); var dataItem = e.sender.dataItem(row); if (dataItem!=null && dataItem.get("nombre").toLowerCase().indexOf("company") >= 0) { row.addClass("green"); } } }});
using this code on a Kendo ui Grid the column header shows the image attached.
it's a bug?
Thanks!
I tried to parse "2016-07-24T23:25:33.632Z" to datePicker. Because I am in timezone +10, I will expect it come back 25/07/2016 however it always display 24/07/2016. Do you know how to make it work
<input kendo-date-picker
ng-model="dateString"
k-format = "dd/MM/yyyy "
k-parse-formats ="['YYYY-MM-DDTHH:mm:ss.fffZ']"
/>
http://dojo.telerik.com/@wingouyang/UBeRO
The Upload component shows the drop zone when using Microsoft's Edge browser, but that browser does not currently support file drag and drop. It seems like kendo.upload.js._supportsDrop should account for that.
Brad
I think columns need correction for GridColumn interface:
interface GridColumn { aggregates?: any; attributes?: any; columns?: any; //I think this should be GridColumn[] not any command?: GridColumnCommandItem[]; encoded?: boolean; field?: string; filterable?: boolean|GridColumnFilterable; footerAttributes?: any; footerTemplate?: string|Function; format?: string; groupable?: boolean; groupHeaderTemplate?: string|Function; groupFooterTemplate?: string|Function; headerAttributes?: any; headerTemplate?: string|Function; hidden?: boolean; locked?: boolean; lockable?: boolean; minScreenWidth?: number; sortable?: boolean|GridColumnSortable; template?: string|Function; title?: string; width?: string|number; values?: any; menu?: boolean; }
I just found that the non-hovered PDF icon on the Export to PDF button is offset from where it should be. The hover version is correct.
See http://demos.telerik.com/kendo-ui/grid/pdf-export and switch to the Default theme.
