rowContent += "<td><input " + checked + " class='" + field.FieldTypeInput + "' type='" + field.FieldTypeInput + "' id='FldList_" + rowLength + "__UpdatedValue' value='" + currentValue + "' name='FldList[" + rowLength + "].UpdatedValue' ></td>";$('.datepicker').kendoDatePicker();$('.datepicker').kendoDatePicker({ open: function () { setTimeout(function () { $('.ui-datepicker').css('z-index', 8888); }, 1); }});$("input[type=date]").kendoDatePicker({ open:function(e) { window.setTimeout(function(){ $(".k-calendar-container").parent(".k-animation-container").css("zIndex", "11000"); }, 1); } });I am having trouble getting the selected value in a dropdownlist to stay put.
My application, which uses AngularJS 1.6, loads a large-ish dataset, and I have two Kendo DropDownLists that each apply a different filter to the data. The first one uses a static set of data, loaded into an ObservableArray; the second relies on me loading a set of unique values from the dataset into another ObservableArray, along with a default "description" value. As the first filter changes, the second filter is supposed to reload those unique values, since the first filter might have filtered out all of the records mathcing one or more of those values. There is nothing asynchronous going on here, or at least not that I'm aware of.
What I am seeing is that, when I change the selection in the first dropdown, whatever is selected in the second dropdown is blanked out--that is, it shows a blank selection. The values that are displayed when I open the dropdown are correct, the dataset is filtered as if the selected value is still displayed, and the act of opening the dropdown and then clicking off of it is sufficient to cause it to re-display the selected value.
I have tried 6 different ways from Sunday to ensure that the value of the second dropdown remains displayed, but I am out of ideas. Here is the HTML:
<form name="form" class="form-inline"> <select name="accountStatus" style="width: 180px;" class="form-control" ng-model="status" ng-change="onAccountStatusChange(status)" kendo-drop-down-list k-options="accountStatusOptions"></select> <select name="filterByRegion" style="width: 180px;" class="form-control" ng-model="selectedRegion" ng-change="onRegionFilterChange(selectedRegion)" kendo-drop-down-list k-options="regionFilterOptions"></select></form>And here are each of the JS methods invoked in the process of changing the selections and updating the second ObservableArray:
$scope.onRegionFilterChange = function(selectedRegion) { $scope.selectedRegion = selectedRegion;};$scope.onAccountStatusChange = function(status) { $scope.status = status; updateRegionFilterList();};var updateRegionFilterList = function () { $scope.regions.empty(); angular.forEach($scope.accounts, function(account) { if (account.reviewStatus === $scope.status) { if ($scope.regions.indexOf(account.regionID)) = -1) $scope.regions.push(account.regionID); } } }); $scope.regions.sort(); $scope.regions.unshift("Filter By Region:"); if ($scope.regions.indexOf($scope.selectedRegion)) = -1) { $scope.selectedRegion = "Filter By Region"; }};Among the things I've tried are: instead of using the empty() command on the ObservableArray, I've tried testing each value in it to see if it should still be displayed, and splicing out those that shouldn't be; storing the current selected value in a temp variable and reloading it at the end of the method. I've also checked the values in the debugger and even added a toastr message to display the selected value, all of which showed that it should have been showing up just fine.
Any ideas?
I have two DatePicker and I want to use them as Filter to show every thing between two date .
How can I achieve this ??!
Hi, I am using kendo-ui and angular together
i have kind of complicated table so the rows looks different and i am writing them like
<div kendo-grid.....
<table k-row-template>
<tr data-uid="#:uid#" rold="row">
<td>...............
</tr>
</table>
some of the rows should have the possibility of expanding
but when i am adding to the above code <div k-detail-template>
all the view is ruined and there is nothing related to expanding.
means:
<div kendo-grid.....
<table k-row-template>
<tr data-uid="#:uid#" rold="row">
<td>...............
</tr>
<div k-detail-template>
blablabla
</div>
</table>
so am i wrong?
if so how to do it correctly when i need k-row-template and k-detail-template. and the expanding only in specific rows with specific property in dataitem.
what should i do?
i am very very confused!!!
thanks for your urgent help

Good day.
We have a commenting system in our site and we're using a kendo template to display the comments. As the title stated, one comment that being returned from the database has those quotes and its preventing the whole template to be loaded, once we changed the quotes into the regular ones ( " and ' ), it loaded properly.
I thought it's weird that it will not be handled. Any ideas or suggestions?
var ds = new kendo.data.DataSource({ transport: { read: { url: "/path/to/our/remote/function", type: "get", dataType: "json", cache: false, data: { ID: id } } }, schema : { type: "json", data: "Comments", model: { fields: { Text: { field: "Text", type: "string" } //need this for comments consisting of only a number } }, parse: function (data) { //additional processing var comments = data.Comments; $.map(comments, function (item, index) { if (typeof(item.Created) !== "undefined" && item.Created != null) { var current_datetime = moment(); var created = moment(new Date(item.Created)); item.Created = created.from(current_datetime); } }); return data; } }});
Hey guys,
I'm having trouble setting the focus to a column after I've just added a new row to my grid.
When I add a new row, I want to set the focus to a custom drop down editor I've implemented. However, if I override the edit function of the grid and set the focus to the drop down list, once the edit function is complete, the focus will be reset to the first editable cell in the row.
I have an example here: http://dojo.telerik.com/@gmeulendyks/eFinI/3
Clicking the "Add New Record" button should set focus to the Category drop down list.
Can someone tell me what I'm doing wrong in the edit function?
Thanks,
Graham
We were using telerik version Kendo UI v2015.1.408 and recently upgraded to Kendo UI v2017.2.504 after which the server side pagination is not working fine. The sample code is as follows:
var allNameDataSource = new kendo.data.DataSource({
serverPaging: true,
serverFiltering: true,
transport: {
read: {
url: "/StudentNames/Name/GetAllNames",
contentType: "application/json; charset=utf-8",
dataType: "json",
async: false,
type: "POST"
},
parameterMap: function (options, operation) {
debugger;
if (operation !== "read" && options) {
return JSON.stringify({
model: options
});
}
else if (operation == "read") {
debugger;
var sortOrderField = null;
var sortOrderValue = null;
var selectedSorting = allNameViewModel.allNameDataSource.sort();
if (typeof (selectedSorting) != "undefined" && selectedSorting.length > 0) {
sortOrderField = selectedSorting[0].field;
sortOrderValue = selectedSorting[0].dir;
}
var filterAndCondition = allNameViewModel.allNameDataSource.filter();
if (typeof (filterAndCondition) != "undefined" && filterAndCondition != null) {
if (filterAndCondition.filters.length > 0) {
debugger;
allNameViewModel.pushKendoCustomFilter(filterAndCondition);
debugger;
var CustomFilters = allNameViewModel.Filters;
return JSON.stringify({ skip: options.skip, take: options.take, pageSize: options.pageSize, OrderByField: sortOrderField, OrderByValue: sortOrderValue, filter: allNameViewModel.filter, CustomFilters: CustomFilters });
}
}
return JSON.stringify({ skip: options.skip, take: options.take, pageSize: options.pageSize, OrderByField: sortOrderField, OrderByValue: sortOrderValue, filter: allNameViewModel.filter });
}
}
},
pageSize: PageCountValue > 0 ? PageCountValue: 10,
schema: {
model: {
id: "StudentId",
fields: {
Name: { type: 'string' },
Age: { type: 'string' },
Address: { type: 'string' },
Email: { type: 'string' }
}
},
data: function (data) {
return data.data;
},
total: function (data) {
return data.total;
},
}
}),
Please let me know what is wrong with this.