In my project, I used Kendo Editor, Kendo DateTimePicker, Kendo Sortable and Kendo Upload. I want to apply the Content Security Policy for my site. And I met some problem about it.
According to the link: http://docs.telerik.com/kendo-ui/troubleshoot/content-security-policy, I have to use the 'unsafe-eval'.
But after I added the 'unsafe-eval', there still are errors about inline style, inline script and script URL. Please check the attached files.
After I added the 'unsafe-inline' to script-src and style-src, then all errors disappeared.
Just want to ask if the 'unsafe-inline' for script and style must be used for Kendo UI? Will Kendo UI support the strict Content Security Policy in the future?
hello,
When you make a grid scrollable it appears to create 2 tables one for the head and one for the body. This causes the WAVE tool to see the body table as a layout table, which can cause issues for screen readers. Is anyone able to confirm that making a grid scrollable still confirms with WCAG AA standard?
Thank you
Jack
Is it possible to resize image by dragging similar to crop is doing?
It would be nice addition.
Hi,
We have recently changed some legacy code which was calling a WCF API to populate the grid and it was using serverside paging. We have to use the same serverside paging but with C# datasource. How can we achieve this?
This is how the code was before when it used an API:
dataSource: {
type: "odata",
transport: {
read: dataUrl,
dataType: "json"
},
schema: {
model: BillingModel,
data: function (data) {
return data["value"];
},
total: function (data) { return data['odata.count']; }
},
serverPaging: true,
serverFiltering: true,
serverSorting: true,
sort: { field: "EncounterDate", dir: "asc" }
}
This was changed to use the c# datasource now:
dataSource: {
schema: {
model: BillingModel,
}
}
I am using the following JSON data in my Kendo ListView DataSource:
[
{
"Id"
: 2,
"Name"
:
"My Name"
,
"Address"
:
"123 Sesame Street"
,
"City"
:
"My City"
,
"State"
:
"MO"
,
"ProductTypes"
: [
{
"Id"
: 2,
"Name"
:
"Cage Free"
},
{
"Id"
: 3,
"Name"
:
"Free-Trade"
},
{
"Id"
: 4,
"Name"
:
"GAP"
},
{
"Id"
: 6,
"Name"
:
"Grass Fed"
}
]
}
]
Now here is my goal/issue. I would like to filter the datasource when a checkbox is checked and the field I would like to filter by is the `ProductTypes.Name` field.
However, I'm not sure how to get this working correctly.
Here is my DataSource:
profileDataSource:
new
kendo.data.DataSource({
transport: {
read: {
url:
"/Profile/GetAllProfiles"
,
dataType:
"json"
}
},
schema: {
model: {
fields: {
Id: { type:
"number"
, editable:
false
, nullable:
true
},
Name: { type:
"string"
},
ProductTypes_Name: { type:
"string"
, from:
"ProductTypes.Name"
}
}
}
}
})
And here is how I'm currently trying to filter but it's not working:
$(
"#profileCertificationsListView"
).on(
"click"
,
"input[type=checkbox]"
,
function
() {
viewModel.profileDataSource.filter({
filters: [
{ field:
"ProductTypes_Name"
, operator:
"eq"
, value: $(
this
).attr(
"name"
) }
]
}
});
If I check the checkbox that has the name "Cage Free" for example, all of the items in the listview are hidden.