Hi..
Im using kendo ui grid with row filtering and inline edit. im using cache mechanisam where i will be having reference data and binding data to grid,
$scope.kendoParse = (result) => {
var data = [];
var results = result.results;
for (var i = 0; i < results.length; i++) {
var activity = {
id: results[i].id,
name: results[i].name,
description: results[i].description,
departmentId: results[i].department,
activityCategoryId: results[i].activityCategory,
createdDate: results[i].createdDate ,
createDate: results[i].createDate,
createdBy: results[i].createdBy
};
data.push(activity);
}
return { "results": data, "totalResults": result.totalResults };
};
and im binding columns type as object. below is the code that im using to bind columns to grid
kendoProperties.addColumnConfiguration({ type: "string", field: "name", title: "Name", filterable: { operators: { string: { contains: "Contains", startswith: "Starts With", eq: "Is Equal To" } } } });
kendoProperties.addColumnConfiguration({ type: "string", field: "description", title: "Description", template: "#= (description == null) ? '-NA-' : description #", filterable: { operators: { string: { contains: "Contains", startswith: "Starts With", eq: "Is Equal To" } } } });
kendoProperties.addColumnConfiguration({
type: "object", field: "departmentId", title: "Departmets", template: "#= departmentId.name #",
editor: departmentEditor, filterable: { cell: { template: departmentFilter, showOperators: true } }
});
kendoProperties.addColumnConfiguration({
type: "object", field: "activityCategoryId", title: "Category", template: "#= activityCategoryId.name #",
editor: activityEditor, filterable: { cell: { template: categoryFilter, showOperators: true } }
});
kendoProperties.addColumnConfiguration({
type: "date", field: "createdDate", title: "Created Date", template: "#= (createdDate == null) ? '-NA-' : kendo.toString(kendo.parseDate(createdDate, 'yyyy-MM-dd'), 'yyyy-MM-dd') #",
filterable: { cell: { operator: "EQUALS" } }
});
kendoProperties.addColumnConfiguration({
type: "",
field: undefined, command: [{ name: "edit", template: "<div class='kendo-grid-editbtn k-button'><span class='k-icon k-edit'></span></div>" },
{ template: "<button class=\"rec-btn grid-action-btn tooltipstyle action- gird - btn\" data-toggle=\"tooltip\" data-placement=\"bottom\" ng-click=\"deleteEntity(dataItem.id)\"><i class=\"settinggrid fa fa-trash-o\"></i></button>" }],
title: "Actions"
});
where ever im using column type object grouping is not working for those column.
kindly help to solve the issue,
Thank you in advance.
Im using kendo ui grid with row filtering and inline edit. im using cache mechanisam where i will be having reference data and binding data to grid,
$scope.kendoParse = (result) => {
var data = [];
var results = result.results;
for (var i = 0; i < results.length; i++) {
var activity = {
id: results[i].id,
name: results[i].name,
description: results[i].description,
departmentId: results[i].department,
activityCategoryId: results[i].activityCategory,
createdDate: results[i].createdDate ,
createDate: results[i].createDate,
createdBy: results[i].createdBy
};
data.push(activity);
}
return { "results": data, "totalResults": result.totalResults };
};
and im binding columns type as object. below is the code that im using to bind columns to grid
kendoProperties.addColumnConfiguration({ type: "string", field: "name", title: "Name", filterable: { operators: { string: { contains: "Contains", startswith: "Starts With", eq: "Is Equal To" } } } });
kendoProperties.addColumnConfiguration({ type: "string", field: "description", title: "Description", template: "#= (description == null) ? '-NA-' : description #", filterable: { operators: { string: { contains: "Contains", startswith: "Starts With", eq: "Is Equal To" } } } });
kendoProperties.addColumnConfiguration({
type: "object", field: "departmentId", title: "Departmets", template: "#= departmentId.name #",
editor: departmentEditor, filterable: { cell: { template: departmentFilter, showOperators: true } }
});
kendoProperties.addColumnConfiguration({
type: "object", field: "activityCategoryId", title: "Category", template: "#= activityCategoryId.name #",
editor: activityEditor, filterable: { cell: { template: categoryFilter, showOperators: true } }
});
kendoProperties.addColumnConfiguration({
type: "date", field: "createdDate", title: "Created Date", template: "#= (createdDate == null) ? '-NA-' : kendo.toString(kendo.parseDate(createdDate, 'yyyy-MM-dd'), 'yyyy-MM-dd') #",
filterable: { cell: { operator: "EQUALS" } }
});
kendoProperties.addColumnConfiguration({
type: "",
field: undefined, command: [{ name: "edit", template: "<div class='kendo-grid-editbtn k-button'><span class='k-icon k-edit'></span></div>" },
{ template: "<button class=\"rec-btn grid-action-btn tooltipstyle action- gird - btn\" data-toggle=\"tooltip\" data-placement=\"bottom\" ng-click=\"deleteEntity(dataItem.id)\"><i class=\"settinggrid fa fa-trash-o\"></i></button>" }],
title: "Actions"
});
where ever im using column type object grouping is not working for those column.
kindly help to solve the issue,
Thank you in advance.