I have the following function which works perfectly in Chrome but not IE11.
kendo.drawing.drawDOM($(".pagePDF"), { forcePageBreak: ".page-break" })
.then(function (group) {
var PAGE_RECT = new kendo.geometry.Rect([0, 0], [mm(215.9 - 25), mm(279.4 - 25)]);
var content = new kendo.drawing.Group();
content.append(group);
//kendo.drawing.align(content, PAGE_RECT);
kendo.drawing.fit(content, PAGE_RECT);
kendo.drawing.pdf.saveAs(group, $("#Nom").val() + ".pdf");
return kendo.drawing.exportPDF(content, {
paperSize: "Letter",
margin: { left: "1cm", top: "1cm", right: "1cm", bottom: "1cm" },
Landscape:true
});
})
It starts working in IE11 if I take out the forcePageBreak. If there are any properties, the "then" instruction is never executed. There is just nothing happening.
And, again, it is working fine in Chrome.
Can anybody help me with this problem?
Thanks in advance!
Hello Telerik,
I'm currently trying to get some columns in a KendoUI Grid to display a value OTHER than the value I want to pass in the "read" function to use in filtering the servery side query. Right now all the other columns are using the actual displayed value to pass back to the filtering query on the backend. So we're frequently using strings like "John Doe, Jane Doe" instead of a lstUserIDs "1,2" because we can't seem to get filtering functions to pass the id values instead of display values. Here's a sample of the actual case in question. I wasn't able to determine from the serverside demo in the docs how this might be accomplished, or even if it could.
With the column configured as below, I end up with an error "VM8499:3 Uncaught ReferenceError: asset_class_nm is not defined". Changing the inner field to "asset_class_nm" works, but then I again have a text list of the names instead of the list of internal bigint IDs that I'd like. Thanks!
,{
field:
"asset_class_nm"
,
title:
"Asset Class"
,
attributes: {
style:
"text-align: left;"
},
filterable: {
dataSource: {
transport: {
read: {
url:
"srv_get_asset_classes.cfm"
,
dataType:
"json"
,
data: {
field:
"asset_class_id"
}
}
}
},
multi:
true
}
}
hello,
i'm trying to Integrate kendoDraggable with kendoSortable (inside ListView)
here is an example : https://dojo.telerik.com/iZOfuNoW
i want to drag a button and drop it inside Sortable ListView
My dropdownlist is absolutely fine until if surround it with an MVC if statement. It then becomes invisible, while the text around it is visible.
Before Adding If
<
b
>Central Hub</
b
>
@(Html.Kendo().DropDownList()
.Name("postcodeServiceExclusionsHubSelector")
.HtmlAttributes(new { style = "width: 70px;" })
.DataTextField("DepotNumber")
.DataValueField("DepotID")
.BindTo(Model.CentralHubs)
.OptionLabel("Select...")
)
After Adding MVC If Statement
@if (Model.CanSelectCentralHub)
{
@:<
b
>Central Hub</
b
>
@:
Html.Kendo().DropDownList()
.Name("postcodeServiceExclusionsHubSelector")
.HtmlAttributes(new { style = "width: 70px;" })
.DataTextField("DepotNumber")
.DataValueField("DepotID")
.BindTo(Model.CentralHubs)
.OptionLabel("Select...");
@:
}
I use MultiColumnComboBox with MVVM but I can't filter multi column. I tried filterFields and data-filterFields attribute but could not run . Source code is below.
Thanks for your help
<input data-role="multicolumncombobox"
data-filter="contains"
data-filterFields= "[ProductName, ProductID]"
data-placeholder="Type a product e.g. 'Chai'"
data-text-field="ProductName"
data-value-field="ProductID"
data-columns="[
{field: 'ProductID', title: 'Urun Kodu'},
{field: 'ProductName', title: 'Urun Adı'}
]"
data-bind="value: selectedProduct,
source: products
}"
style="width: 100%" />
Hi,
Is there any way that I can load the column settings of kendo grid using an XML. I will have the columns settings such as Column Name, width, visibility,order of display saved in a form of an XML some where in the configuration. User can manipulate the XML based on how he want to view the columns, so he has the complete command on which columns to display and in what order. There is always an option of reading the XML, form a Array of objects and assign it to "columns" property in the grid.
But is there any way that I can read that XML directly from a source and load or assign it to property so that my job gets easier?
Thanks,
Sag
Hi!
I am attempting to add required validation to a text cell.
Here's a demo attempt: https://dojo.telerik.com/uPoZUgAy/3
I only succeed if I uncomment the function in the "from" property, otherwise it crashes.
The fix I found is probably a hack-y approach, so I am opening this thread to find the recommended approach for my situation...
Thanks!
Hi,
I would like to know how to make the DateInput / DatePicker of JQuery behave as in Angular, that is, when entering a date, when informing the day pass straight to inform the month, without having to use the right arrow.
Thank you
Sandro Paese