Hi, my kendo version is 2017.3.1026, chrome version is 63.0.3239.84
I found that collapseGroup is not work ,
dojo example:https://dojo.telerik.com/Ehuru
you can see that only first row has been collapse....
but I want it collapse all rows, is this a bug?
I'm using the Selectable Columns with Checkboxes options.
As the documentation mentions, the header checkbox checks only the items in the current page. Is it possible to change this behaviour to select all items in the grid's collection regradless of curent pager size?
I have a datapicker:
<
label
class
=
"required label-date"
for
=
"a-c"
>StartDate</
label
>
<
input
id
=
"a-c"
class
=
"k-datepicker"
name
=
"Date"
required
validationMessage
=
"Write {0}"
data-role
=
"datepicker"
data-bind
=
"value: start, events: {change: OnChangeStart}"
/>
and a kendo validator with datapicker rules:
var validator = $("#form").kendoValidator({
rules: {
datepicker: function(input) {
if (input.is("[data-role=datetimepicker]")) {
return input.data("kendoDateTimePicker").value();
} else {
return true;
}
}
},
messages: {
datepicker: "Please enter valid date!",
required: " Required input"
}
}).data("kendoValidator");
validationMessage override the datapicker message.
I would not like to delete the Validation Message.
Hi,
I'm wondering how can I read get the data from datasource before user click on the autocomplete widget. I have the following code:
var ds = new kendo.data.DataSource({
transport: {
read: {
url: "../IndividualData/SalesPerson",
dataType: "json",
data: this.requestData()
}
},
schema: { data: "data", total: "total" },
pageSize: 50
})
this.autocomplete.setDataSource(ds);
console.log(this.autocomplete.dataSource);
But it seems like I'm always getting empty datasource for some reason. Can anyone help me?
Regards,
Yifan
Here i have grid with columns, when try to add a new record giving an error and following is the code.
$('#dcmMappingGrid').kendoGrid({
dataSource: response.DCMMappings,
schema: {
type: 'json',
parse: function (data) {
$.each(data.items, function (i, val) {
val.StartDate = toDate(val.StartDate);
val.EndDate = toDate(val.EndDate);
});
}
},
pageable: false,
height: 550,
toolbar: ['create'],
columns: [
{ field: 'DCMId', title: 'DCM Id', width: '120px', format: '{0: 0}' },
{ field: 'StartDate', title: 'Start Date', width: '120px', format: '{0: dd-MMM-yyyy}', template: '# if( false ) { #<span>#: kendo.toString(new Date(), "dd-MMM-yyyy")#<span># } else {#<span>#: kendo.toString(toDate(StartDate), "dd-MMM-yyyy")#<span>#} #', editor: startDateEditor },
{ field: 'EndDate', title: 'End Date', width: '120px', format: '{0: dd-MMM-yyyy}', template: '#= kendo.toString(toDate(EndDate), "dd-MMM-yyyy") #', editor: endDateEditor },
{ command: ['edit', 'destroy'], title: ' ', width: '250px' }],
editable: 'inline',
edit: function (e) {
//if (!e.model.isNew()) {
//}
},
detailTemplate: kendo.template($('#template').html()),
detailInit: detailInit
});
Please help to fix this.
advance thanks.
I need to download the contents of a div to a pdf. there are some currency symbols as unicode which are not getting rendered in the pdf
self.pdfPrint = function () {
kendo.drawing.drawDOM($("#content"))
.then(function (group) {
return kendo.drawing.exportPDF(group, {
paperSize: "auto",
margin: { left: "1cm", top: "1cm", right: "1cm", bottom: "1cm" }
})
})
.done(function (data) {
kendo.saveAs({
dataURI: data,
fileName: "file.pdf",
});
});
}
How to change placeHolder of search textbox in the multiselect?
I have a grid with columns name, status and updatedAt. Status column as editable and has dropdown values. When a user update status value, I have called the rest api for doing some business logic and returns response with an updated date. I want to update that date in updatedAt column.
Please help me to achieve this.