Hi All,
I'm using a ProgressBar for a very long running process. The problem is the bar is updated quite slowly. For instance, when I've processed all of the data items (I use fields to show processed and pending items), the progress bar is showing just a 50% advance. This is more noticeable for longer data sets.
I've set the update delay to 0 (no animation).
Is there anything else I can do to speed it up?
Thank you.
Hi,
We are facing scroll issue while we scroll outside the dropdown. We have attached video to understand the issue.
Following is the code to bind the dropdown and kendo grid:
function bindKendoGrid() {
$(_kendoGrid).kendoGrid({
dataSource: {
schema: {
model: {
fields: {
CourseName: { type: "string", editable: true, validation: { required: true } },
Score: { type: "number", defaultValue: 1, validation: { required: true, min: { value: 1, message: "The score must be between 1 to 100" }, max: { value: 100, message: "The score must be between 1 to 100" } } },
CompletionDate: {
type: "date", title: "Completion Date", validation: {
required: { message: "Completion Date is required" },
Datevalidation: function (input) {
if (input.is("[name='CompletionDate']") && input.val() != "") {
input.attr("data-Datevalidation-msg", "Completion Date is not valid");
var date_regex = /^(([0-9])|([0-2][0-9])|([3][0-1]))\ (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\ \d{4}$/;
return date_regex.test(input.val());
}
return true;
}
}
},
}
}
}
},
batch: true,
pageable: false,
height: 420,
scrollable: true,
toolbar: ["create"],
columns: [
{ field: "CourseName", title: "COURSE NAME", width: "330px", editor: courseDropDownEditor, template: "#=CourseName#" },
{ field: "Score", type: "number", title: "SCORE", width: 230, min: 1, max: 100 },
{ field: "CompletionDate", title: "COMPLETION DATE", type: "date", width: 330, format: "{0:d MMM yyyy}" },
{ command: ["destroy"], title: " ", width: 230 }],
editable: {
createAt: 'bottom'
},
dataBound: gridDataBound
});
}
function courseDropDownEditor(container, options) {
$('<input name="Course Name" id="CourseName" required data-text-field="CourseName" data-value-field="CourseName" data-bind="value:' + options.field + '"/>')
.appendTo(container)
.kendoDropDownList({
autoBind: false,
dataTextField: "CourseName",
dataValueField: "CPETSCourseId",
//optionLabel: "-- Select Course Name --",
dataSource: _CourseList,
'open' : function (e)
{
},
change: function (e) {
var selectedCourse = this.value();
var flag = false;
var cnt = 0;
var gridRowsLength = $(_kendoGrid).data("kendoGrid")._data.length;
for (var i = 0; i < gridRowsLength; i++) {
//if (gridRowsLength > 0 && i <= gridRowsLength - 1) {
var coursename = $(_kendoGrid).data("kendoGrid")._data[i].CourseName;
if (selectedCourse == coursename) {
cnt = parseInt(cnt) + 1;
}
}
if (parseInt(cnt) > 1) {
this.value('');
alert("This course has already selected.");
return false;
}
}
});
}

This is a bizarre issue - I have a grid that works just fine locally for dev but once I publish it to our web server with IIS 7/8 (maybe?) it's not working in any browser. If you weren't go go back and check the data, it would appear as it's working. I receive no console errors, no issues while checking the network tab. When I put a breakpoint in the parametermap , I can clearly see the model data is there with the updated data. I haven't checked insert on the server yet but I can tell you that Update isn't working. I'm not using delete. Read has no issues.
The first part of my web api declaration for this action.
[HttpPost] [Route("Users/InsertUser")] public Int16 InsertUser([FromBody]IEnumerable<vw_Users_GetAll> model)
And the portion of code for the grid...
var crudServiceBaseUrl = getBaseURL(), dataSource = new kendo.data.DataSource({ transport: { read: { url: function (options) { return crudServiceBaseUrl + 'api/Users'; }, dataType: "json", type: 'GET', contentType: 'application/json; charset=utf-8' }, create: { url: function (options) { return crudServiceBaseUrl + 'Users/InsertUser'; }, dataType: "json", type: 'POST', contentType: 'application/json; charset=utf-8', complete: function (e) { ReloadUsersGrid(); } }, update: { url: function (options) { return crudServiceBaseUrl + "Users/UpdateUser" }, dataType: "json", type: "PUT", contentType: "application/json; charset=utf-8", complete: function (e) { ReloadUsersGrid(); } }, parameterMap: function (options, operation) { if (operation !== "read" && options.models) { return kendo.stringify(options.models); } } }, batch: true,
I don't understand how this can work locally but not on the server? Can someone please assist? Thanks.

I've have had created a custom view where that allows me to show non-sequential dates, date grouped by resources. (see attached image).
In the attachment I have 2 dates (12/7 and 12/9) and 2 resources (AU01, AU40). In it's current version the columns are always the cross product of the dates x resources. Eg. 12/7 has a column for au01, au40 and 12/9 has a column for au01, au40.
I would like to create a customized version where the columns where not necessarily always a cross product of the resource list. For example I could provide the view with a date with specific resources for that date and the resource might be different on different dates.
I might do something like 12/7 => (AU01, AU02) and then on 12/9 => (AU40, AU41). This would give me 4 columnts displayed.
From the research I've done it looks like I'll have to deal with the grouping and createLayout functions in the scheduler view but not really sure where to start. Any direction or help anyone can provide would be greatly appreciated.
Thank you in advance,
Bo Stewart
Was playing around with a previous example... I'd like to generate the columns for the grid based on what is returned from a call to the server.
For example, in the example below
$scope.columns would not actually be hardcoded in the success() function, but rather be assigned to an object which has been returned in response
-Ed
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Kendo UI Snippet</title>
<link rel="stylesheet" href="http://kendo.cdn.telerik.com/2016.3.1028/styles/kendo.common.min.css"/>
<link rel="stylesheet" href="http://kendo.cdn.telerik.com/2016.3.1028/styles/kendo.rtl.min.css"/>
<link rel="stylesheet" href="http://kendo.cdn.telerik.com/2016.3.1028/styles/kendo.silver.min.css"/>
<link rel="stylesheet" href="http://kendo.cdn.telerik.com/2016.3.1028/styles/kendo.mobile.all.min.css"/>
<script src="http://code.jquery.com/jquery-1.12.4.min.js"></script>
<script src="http://kendo.cdn.telerik.com/2016.3.1028/js/angular.min.js"></script>
<script src="http://kendo.cdn.telerik.com/2016.3.1028/js/kendo.all.min.js"></script>
</head>
<body>
<div ng-app="app" ng-controller="MyCtrl">
<div kendo-grid k-options="gridOptions" k-ng-delay="gridOptions"></div>
</div>
<script>
angular.module("app", ["kendo.directives"]).controller("MyCtrl", function($scope, $http) {
$scope.columns=[ { field: "ProductID" }, { field: "ProductName" } ];
$scope.gridOptions = {
columns: $scope.columns,
pageable: true,
dataSource: {
pageSize: 5,
transport: {
read: function (e) {
$http.jsonp('http://demos.telerik.com/kendo-ui/service/Products?callback=JSON_CALLBACK')
.then(function success(response) {
$scope.columns=[{field: "ProductID"}];
e.success(response.data)
}, function error(response) {
alert('something went wrong')
console.log(response);
})
}
}
}
}
});
</script>
</body>
</html>
Hello, I am having this error when I try to export to excel my Kendo Grid:
SyntaxError: missing ) in parenthetical
return (d.Order Again)
not sure what is happening, somebody could give me a hand with this issue?
thanks in advance!
001.var NoFoundMessage = $("#NoFoundMessage");002.var Kendogrid = $("#grid");003.var isOrderById = false;004. 005.(function (myOrders, $) {006. 007. myOrders.OrderHistory = (function () {008. 009. var Order = $("#Order").text();010. var PSQ = $("#PSQ").text();011. var Date = $("#Date").text();012. var Status = $("#Status").text();013. var OrderPurchase = $("#OrderPurchase").text();014. var Purchaser = $("#Purchaser").text();015. var ShipTo = $("#ShipTo").text();016. var Volume = $("#Volume").text();017. var OrderAgain = $("#OrderAgain").text();018. var ViewReceipt = $("#ViewReceipt").text();019. 020. var getUrlWithLocale = function (url) {021. var pathArray = window.location.pathname.split('/');022. var segment = pathArray[1];023. var regex = /^([a-zA-Z]{2}-[a-zA-Z]{2})$/;024. 025. if (regex.test(segment)) {026. return "/" + segment + url;027. }028. return url;029. }030. 031. var load = function() {032. showGrid();033. kendo.ui.progress(Kendogrid, true);034. Kendogrid.kendoGrid({035. noRecords: true,036. dataSource: {037. type: "POST",038. transport: {039. read: function(options) {040. if (isOrderById === false) {041. getOrdersDataSource(myOrders.SearchControl.pagingSearch(), options);042. } else {043. getOrderByIdDataSource(localStorage.OrderID, options);044. isOrderById = false;045. }046. }047. },048. batch: true,049. schema: {050. type: 'json',051. model: {052. id: "OrderID",053. fields: {054. OrderID: { type: "string" },055. PurchasedBy: { type: "string" },056. ReceivedDate: { type: "date" },057. OrderStatusDesc: { type: "string" },058. HAPOrderStatus: { type: "string" },059. OrderPurpose: { type: "string" },060. PurchaserName: { type: "string" },061. Recipient: { type: "string" },062. VolumePoints: { type: "string" },063. OrderAgain: { type: "string" },064. ViewReceipt: { type: "string" }065. }066. }067. },068. pageSize: 10069. },070. groupable: false,071. sortable: true,072. pageable: {073. refresh: false,074. pageSizes: true075. },076. columns: [077. {078. field: "OrderID",079. title: Order,080. template: function(data) {081. var url = getUrlWithLocale("/Account/OrderHistory/GetOrderDetails/");082. return "<a id='btnViewDetails' data-orderID='" +083. data.OrderID +084. "' href='" +085. url +086. data.OrderID +087. "/Ds' target='_self'>" +088. data.OrderID +089. "</a>";090. }091. },092. {093. field: "PurchasedBy",094. title: PSQ095. },096. {097. field: "ReceivedDate",098. title: Date,099. template: function(data) {100. return data.ReceivedDate.toLocaleDateString();101. }102. },103. {104. field: "OrderStatusDesc",105. title: Status,106. template: function(data) {107. if (data.OrderStatusDesc === 'ORDER COMPLETE') {108. return "<span class='complete'>" + data.OrderStatusDesc + "</span>";109. } else if (data.OrderStatusDesc === "CANCELLED") {110. return "<span class='cancelled'>" + data.OrderStatusDesc + "</span>";111. }else if (data.OrderStatusDesc === "PAID"){112. return "<span class='paid'>" + data.OrderStatusDesc + "</span>";113. }114. else {115. return "<span class='processing'>" + data.OrderStatusDesc + "</span>";116. }117. }118. },119. {120. field: "HapOrderStatus",121. title: Status,122. hidden: true,123. template: function(data) {124. if (data.HapOrderStatus === "ACTIVE") {125. return "<span class='complete'>" + data.HapOrderStatus + "<span>";126. } else if (data.HapOrderStatus === "CANCELLED") {127. return "<span class='cancelled'>" + data.HapOrderStatus + "<span>";128. } else {129. return "<span class='processing'>" + data.HapOrderStatus + "<span>";130. }131. }132. },133. {134. field: "OrderPurpose",135. title: OrderPurchase136. },137. {138. field: "PurchaserName",139. title: Purchaser,140. attributes: {141. "class": "tablet"142. },143. template: "#:PurchaserInfo.PurchaserName#"144. },145. {146. field: "Recipient",147. title: ShipTo,148. attributes: {149. "class": "tablet"150. },151. template: "#:Shipment.Recipient#"152. },153. {154. field: "VolumePoints",155. title: Volume,156. template: "#:Pricing.VolumePoints#"157. },158. {159. field: "Order Again",160. title: OrderAgain,161. template: (function() {162. var url = getUrlWithLocale("/Shop/Cart/Copy/Index/");163. if (myOrders.SearchControl.pagingSearch().IsHapOrder === false) {164. return "<a class='icon-files-ln-3' href='" + url + "#:OrderID#/Ds'> </a>";165. }166. return "";167. }())168. },169. {170. field: "ViewReceipt",171. title: ViewReceipt,172. template: (function (data) {173. if(data.OrderPurpose=="Consumer Direct")174. {175. return "<a href=''><i class='icon-receipt-ln-4'></i></a>";176. }177. return "";178. })179. }180. ]181. });182. }183. 184. var searchByOrderId = function(orderId) {185. localStorage.searchByOrderId = true;186. isOrderById = true;187. localStorage.OrderID = orderId;188. load(false);189. }190. 191. function getOrdersDataSource(data, options) {192. $.ajax({193. url: getUrlWithLocale("/Account/OrderInquiry/GetOrders"),194. data: data,195. dataType: "json",196. success: function(result) {197. if (result == null) {198. noFound();199. } else {200. formatColumns(myOrders.SearchControl.pagingSearch().IsHapOrder);201. showGrid();202. }203. kendo.ui.progress(Kendogrid, false);204. options.success(result);205. }206. });207. }208. 209. function getOrderByIdDataSource(orderId, options) {210. $.ajax({211. url: getUrlWithLocale("/Account/OrderInquiry/GetOrderById"),212. data: { orderId: orderId },213. dataType: "json",214. success: function(result) {215. if (result == null) {216. noFound();217. } else {218. if (result[0].IsStandingHapOrder === true) {219. formatColumns(true);220. $(".k-grid-header-wrap > table").addClass("hap-table");221. $(".k-grid-content > table").addClass("hap-table");222. }223. showGrid();224. }225. kendo.ui.progress(Kendogrid, false);226. options.success(result);227. }228. });229. }230. 231. function noFound() {232. Kendogrid.hide();233. NoFoundMessage.show();234. }235. 236. function showGrid() {237. NoFoundMessage.hide();238. Kendogrid.css("display", "block");239. };240. 241. function formatColumns(isHapOrder) {242. 243. var grid = Kendogrid.data("kendoGrid");244. 245. if (isHapOrder === true) {246. grid.hideColumn("Recipient");247. grid.hideColumn("Order Again");248. grid.hideColumn("ViewReceipt");249. grid.hideColumn("OrderStatusDesc");250. grid.hideColumn("PurchasedBy");251. grid.hideColumn("PurchaserName");252. grid.showColumn("HapOrderStatus");253. 254. $("#grid thead [data-field=ReceivedDate] .k-link").html("Start Date");255. 256. } else {257. //CSS258. grid.showColumn("Recipient");259. //$("th[data-field='Recipient']").show();260. grid.showColumn("OrderAgain");261. //$("th[data-field='Order Again']").show();262. grid.showColumn("ViewReceipt");263. //$("th[data-field='ViewReceipt']").show();264. grid.showColumn("OrderStatusDesc");265. //$("th[data-field='OrderStatusDesc']").show();266. grid.showColumn("PurchasedBy");267. //$("th[data-field='PurchasedBy']").show();268. grid.showColumn("PurchaserName");269. //$("th[data-field='PurchaserName']").show();270. grid.hideColumn("HapOrderStatus");271. //$("th[data-field='HapOrderStatus']").hide();272. //$("#grid thead [data-field=ReceivedDate] .k-link").html("Date");273. }274. }275. 276. return {277. load: load,278. gerUrlWithLocale: getUrlWithLocale,279. searchByOrderId: searchByOrderId280. };281. 282. }());283. 284. return false;285. 286.})(window.myOrders = window.myOrders || {}, jQuery);287. 288.$(document).ready(function () {289. 290. myOrders.OrderHistory.load();291. 292. $("#show-form").click(function () {293. $("#search-form").slideToggle();294. $(this).find("i").toggleClass("icon-arrow-circle-ln-29 icon-arrow-circle-ln-30");295. return false;296. });297. 298. $("#export").click(function () {299. var grid = Kendogrid.data("kendoGrid");300. grid.saveAsExcel();301. return false;302. });303. 304.});Hi,
Are the demo's from the website also available for download somewhere? I can't find them in the download on the "my account page"
With kind regards,
Maurice Lucas

I've got two kendo sortable list wherein I can drag the multi-selected items left to right. All looks good but I experienced this weird behavior. The second time I drag diagonally upwards (north east), the placeholder "Drop here" will not appear until you move the mouse downward a little.
Start dragging "Strawberries" then "Pinapples" to the right list. Remember that your cursor should move north east until you reach the below of "Strawberries"
Is this a limitation of kendo drag and drop?
Here is the Dojo that I am using.

I've been looking at this example (dragging event from external grid and dropping to Scheduler): http://docs.telerik.com/kendo-ui/controls/scheduling/scheduler/how-to/drag_and_drop_grid_scheduler
The look and feel is not consistent with when I drag and drop events within scheduler (while moving over drop area there is a semi-transparent event with start and end time updating while you move).
Is there a way of achieving the same behaviour for events from external grid? If there is no easy solution, would you point me into right direction?
