We've had an issue with sorting large, grouped dataSources only in Chrome.
In this thread it was suggested that you have to ensure there's a sort definition on the dataSource: https://www.telerik.com/forums/server-sorting-client-grouping-messes-up-order-in-chrome
It appears to work, but only sometimes, and seems to be random when it fails. There was previously a bug filed in Chrome because it uses an unstable sort, but this issue has been closed as "Working as Intended" by the Chrome team. https://bugs.chromium.org/p/v8/issues/detail?id=90
We're using kendo controls v2017.3.913, but as the bug in Chrome was closed, is there a possibility of re-addressing this with Telerik?
Thanks!
I just updated to the 2017 R1 release of Kendo UI (I wanted the new web font icons). After updating, my grid raises an error when I click the edit button.
The error is "Function Expected" and occurs in kendo.all.min.js on this line:
return!!e.field&&(!(t.editable&&!t.editable(e.field))&&!(e.editable&&!e.editable(t)))
The culprit line within that line is e.editable(t)
In the Visual Studio debugger e looks like:
__proto__ {...} Object
editable true Boolean
encoded true Boolean
field "SponsorFirmID" String
headerAttributes {...} Object
hidden undefined Undefined
template "<span title=\"Edit Sponsor\" style=\"cursor: pointer\">#= SponsorName# <i class=\"\"> </i></span>" String
title "Sponsor" String
width "20%" String
and t is:
AccountDescription Contractor String
AccountDisplay Carey, Christopher String
AccountID 5412 Number
AccountName ccarey String
AccountType Contractor String
AccountTypeID 1 Number
AccountURL http://adcf01w/ondemand/fid2pid.cfm?fid=5412 String
dirty FALSE Boolean
ExpireDT Tue Jan 31 2017 19:00:00 GMT-0500 (Eastern Standard Time) Object, (Date)
id ccarey String
LastConfirmedDT 0001-01-01T00:00:00 String
LastValidatedByFirmID null Null
LastValidatedByName null Null
MaxDaysToExtend 90 Number
SponsorFirmID 4793 Number
SponsorName Waldmann, Christopher String
uid ca20e06b-1935-44a0-b5f5-c44d6aa869d5 String
e {...} Object
[Methods] {...}
__proto__ {...} Object
editable TRUE Boolean
encoded TRUE Boolean
field SponsorFirmID String
headerAttributes {...} Object
hidden undefined Undefined
template <span title=\Edit
Sponsor\" style=\"cursor: pointer\">#= SponsorName# <i
class=\"\"> </i></span>" String
title Sponsor String
width 20% String
e looks like the field reference while t looks like the dataItem reference.
Here is my model in my datasource:
model: {
id: "AccountName",
fields: {
AccountID: { editable: false },
AccountName: { editable: false },
AccountDisplay: { editable: false },
AccountTypeID: { editable: false },
AccountType: { editable: false },
SponsorFirmID: { required: true },
SponsorName: { editable: false },
ExpireDT: { type: "date", required: true },
}
}
and here are the column definitions for my grid:
columns: [
{
field: "AccountDisplay", title: "Name",
headerAttributes: { style: "font-weight: bold;" },
width: "20%",
editable: false
},
{
field: "AccountType", title: "Type",
headerAttributes: { style: "font-weight: bold;" },
width: "10%",
editable: false
},
{
field: "SponsorFirmID", title: "Sponsor",
headerAttributes: { style: "font-weight: bold;" },
width: "20%",
editor: personDropDownEditor,
template: '<span title="Edit Sponsor" style="cursor: pointer">#= SponsorName# <i class=""> </i></span>',
editable: true
},
{
field: "ExpireDT",
template: (function(dataItem){
return kendo.toString(dataItem.ExpireDT, "g");
}),
title: "Expires",
headerAttributes: { style: "font-weight: bold;" },
editor: expireDateEditor,
width: "30%",
editable: true
},
{
command:[
{
text: "Confirm Row",
click: ConfirmData,
imageClass: "k-icon k-i-check",
},
"edit"
],
title: " ", width: "20%", attributes: { style: "text-align:center;" },
editable: false
}
]
I tried removing the custom editor from the SponsorFirmID field, but to no avail. This was working prior to the upgrade and works with the old kendo.all.min.js, but the edit icon does not show.
var dataSource = new kendo.data.DataSource({ schema: { model: { id: "id"}}});
dataSource.pushCreate({ id: 1, name: "John Doe" });
Example:
Single pane has following things:-
Common x axis/category Axis = Date field
Multiple Y axis/value Axes = currency field
Here Y axis/value Axes should be load based on the country/city along with name of the country/city name should be visible besides of the currency filed.
Advance thanks for your help.
Thanks,
Raju
Hello,
I'm having problems getting the details template template to populate from the same kendo data source as the grid. I'm loading the data source for the grid like this:
gridDatasource = new kendo.data.DataSource{
transport:
{
read: function(options)
{
$.ajax({
url: "../services/foo.asmx/GetData",
datatype: "json",
success: function(result){ options.success(result) }
});
}
}
}
The grid populates fine but the detail template will not load. This is how I'm trying to call the detailInit(e)
function detailInit(e) {
getRenewalOpsDetails(e.data);
var detailRow = e.detailRow;
detailRow.find(".tabstrip").kendoTabStrip
({
animation: { open: { effects: "fadeIn" } }
});
detailRow.find("#grdAccountDetails").kendoGrid
({
dataSource: kdsRenewalOpsDetails,
scrollable: false,
columns:
[
{ field: "RefNo", title: "Account Ref No" },
{ field: "NamedInsured", title: "Named Insured" },
{ field: "Address", title: "Address" },
{ field: "RenewalOpsComments", title: "Comments" }
]
});
}
function getRenewalOpsDetails(data)
{
kdsRenewalOpsDetails = new kendo.data.DataSource
({
dataSource:
{
data: data,
schema:
{
model:
{
field:
{
Address: { type: "string" },
NamedInsured: { type: "string" },
RefNo: { type: "string" },
RenewalOpsComments: { type: "string", editable: true },
RenewalOpsCommentsTextID: { type: "number" },
StateCode: { type: "string" }
}
}
}
}
});
}
When debugging inside of chrome I can see that there is data inside of e.data, but the details grid will not populate. Any help would be greatly appreciated, thanks!
Hi,
I want to ask about dropdownlist, i use kendo version "kendo-2016.2.714", why does the dropdownlist type in the kendo version not appear?
Thanks