Hi,
I have a kendo grid and in the page load kendo grid automatically have a new empty row. When we click on the + icon then it should create multiple rows in the grid.
The above functionality is working fine, but when we do a filter on any of the column then on filter click button it should display filtered row along with new empty row.
After click on filter button the empty row is not creating. I tried the below code on click on filter button it fires the Filter event but
its not creating the empty row. Can you please let me know how to add a new empty row on click of filter button.
.Events(ev => ev.Filter("onFiltering"))
function onFiltering() {
var gridName = "grid1";
var grid = $("#" + gridName).data("kendoGrid");
}
Hi,
I have a strict CSP implemented in the Program.cs file, after that when I verified the browser developer tool then I can see the get API is called 2 times.
Can you please let me know why this get API is called 2 times.
When I analyze I found that Kendo Panelbar Select event is called twice so internally the Get API is called twice.
@(Html.Kendo().PanelBar()function OnSelect_Panel(sender) {
}
Inside the OnSelect_Panel() method is calling twice so the GET API also called twice. How can I restrict to one API call.
Note: Without strict CSP OnSelect_Panel() is called once but with strict CSP it called twice.
I have two draggable grids, but the second has no drop point, just a circle with a line through it. Can you tell me why the second grid allows me to drag the row but no where to drop?
// QUESTIONS
.Columns(columns =>
{
//..
columns.Bound(p => p.amount)
.HeaderTemplate(
"Amount"
)
.ClientFooterTemplate(
"Sum: \\#=sum\\# "
);
//..
})
.DataSource(dataSource => dataSource
.Ajax()
.Aggregates(aggregates => {
aggregates.Add(p => p.amount).Sum();
})
.Read(read => read.Action("Invoice_Read", "ProjectsInvoice", new { projectCode = "#=projectCode#" }))
)
Hi,
My job is using the ANDI Accessibility Tool to test for accessibility and Section 508 compliance.
The tool keeps telling me that the, "Grid Element has no accessible name." I have tried all of the suggestions listed in your online Grid Accessibility document. However, I'm still getting the same message.
I also used the ANDI tool on your accessibility grid example and I received the same message.
Can someone assist me with this issue?
ANDI is a free Chrome Extension: https://chromewebstore.
I am including the results from my application and from your online demo grid.
Thanks,
Trena
@(Html.Kendo().Grid<AggregateModel>()
...
.columns.Bound(e => e.AccountType)
.Title("Account Type").Width(100)
.Filterable(f => f.Multi(true).Search(true).DataSource(ds => ds
.Read(read => read.Type(HttpVerbs.Get).Url("api/AccountTypeFilters")
.Data("{ field: 'AccountType' }"))));
{
"$id": "1",
"AccountType": [
{
"$id": "2",
"Disabled": false,
"Group": null,
"Selected": false,
"Text": "Client",
"Value": "0"
},
{
"$id": "3",
"Disabled": false,
"Group": null,
"Selected": false,
"Text": "House",
"Value": "1"
}
]
}
Uncaught TypeError: n.slice is not a function
at init.success (kendoscripts.min.js?v=2-0-289-1:1:101049)
at success (kendoscripts.min.js?v=2-0-289-1:1:100001)
at i.success (kendoscripts.min.js?v=2-0-289-1:1:88721)
at v (headerscripts.min.js?v=2-0-289-1:14:35030)
at Object.fireWith [as resolveWith] (headerscripts.min.js?v=2-0-289-1:14:35775)
at b (headerscripts.min.js?v=2-0-289-1:14:74792)
at XMLHttpRequest.<anonymous> (headerscripts.min.js?v=2-0-289-1:14:79897)
at XMLHttpRequest.wrapFn (webcomponents.js?v=2-0-289-1:2996:35)
at _ZoneDelegate.invokeTask (webcomponents.js?v=2-0-289-1:2626:171)
at ZoneImpl.runTask (webcomponents.js?v=2-0-289-1:2425:37)
We have this Command:
columns.Command(c =>
{
c.Custom("Delete").Text(" ").Click("onClick").IconClass("k-icon k-i-trash").HtmlAttributes(new { @title = Resource.DELETE });
})
And we have this function to set the grid state:
function loadOptions() {
var options = sessionStorage["userTable-options"];
if (options) {
var grid = $('#userTable').data('kendoGrid');
var toolBar = $("#userTable .k-grid-toolbar").html(); // https://stackoverflow.com/questions/27717575/kendo-mvc-persist-and-load-grid-buttons
var optionsJSON = JSON.parse(options);
// https://docs.telerik.com/kendo-ui/knowledge-base/grid-persist-customized-filter
var StatusTranslated = optionsJSON.columns.filter(function (c) { return c.field === "StatusTranslated.Text"; })[0];
StatusTranslated.filterable = {
ui: $.proxy(filterDropDownField, { field: 'StatusTranslated' })
};
grid.setOptions(optionsJSON);
$("#userTable .k-grid-toolbar").html(toolBar);
$("#userTable .k-grid-toolbar").addClass("k-grid-top");
}
}
Before setting the grid state the button executes successfully. After executing setOptions the button does not work anymore.
How do we combine the possibility to save/load the grid state, and the usage of custom buttons in the grid?
Kind regards.
How can I influence the drop down filters so that both start with the operator 'Contains' and the logic between them as 'or'.
They should be able to change them after initial setting. i would like it to look like the enclosed image to start.