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.
I'm totally new to Telerik and the example that I want to build upon is defined in this style:
<kendo-grid name="grid" height="550">
<columns>
<column field="Facility_Id" title="Facility"/>
<column field="Name" title="Name"/>
when I look for hints on what is possible, I find only this style:
$(document).ready(function () {
var grid = $("#grid").kendoGrid({
columns: [
{ field: "FirstName", title: "First Name", width: "140px" },
{ field: "LastName", title: "Last Name", width: "140px" },
{ field: "Title" },
{ command: { text: "View Details", click: showDetails }, title: " ", width: "180px" }]
}).data("kendoGrid");
Which is the preferred one and where do I find examples for the first style please?
Thanks
I have been doing a static code analysis of my entire project with the KIUWAN tool
This tool has found some security issues in some Kendo JS files
I would like to know if they are false positives or if it can be justified in some way that there are no security problems
Problems found (the most important are the first 3):
Kendo version: 2020.2.513