As the title says, my grid is appending the data -- instead of replacing it -- when I refresh the table.
As far as I can tell, this isn't the intended behavior from Telerik, but I also can't find any settings to set this behavior.
I didn't build these components -- someone else did like 5 years ago. However, I did do the update from 2018-2023 so it's entirely possible I simply missed something.
Kendo UI version ^2023.2.718
And here's my code.
$('#CorrectiveActionsGrid').kendoGrid({
toolbar: ['excel'],
excel: {
fileName: 'CorrectiveActions.xlsx',
allPages: true,
},
dataSource: {
type: 'aspnetmvc-ajax',
transport: {
read: {
url: '/LoanAudit/GetAssignmentCorrectiveActions',
type: 'GET',
dataType: 'json',
data: { assignedToId: $('#ddlEmployee').data('kendoDropDownList').value() },
},
},
schema: {
type: 'json',
data: 'data',
total: 'total',
model: {
id: 'id',
fields: {
id: { type: 'string' },
loanNumb: { type: 'string' },
questionText: { type: 'string' },
note: { type: 'string' },
status: { type: 'string' },
caDueBy: { type: 'date' },
},
},
},
serverPaging: true,
serverFiltering: true,
serverSorting: true,
},
selectable: true,
change: function (arg) {
const selected = $.map(this.select(), function (item) {
return $(item).find('td').first().text();
});
const url = `/LoanAudit/CorrectiveAction/${selected}`;
window.open(url, '_blank');
},
filterable: true,
sortable: true,
pageable: {
refresh: true,
pageSize: 10,
pageSizes: [5, 10, 15, 20, 30, 'All'],
buttonCount: 5,
},
columns: [
{ field: 'id', filterable: true, title: 'Corrective Action Id' },
{ field: 'loanNumb', filterable: true, title: 'Loan Number' },
{ field: 'questionText', filterable: true, title: 'Action' },
{ field: 'note', filterable: true, title: 'Reviewer Note' },
{ field: 'status', filterable: true, title: 'Status' },
{
field: 'caDueBy',
filterable: true,
title: 'Due Date',
template: "#= (caDueBy == null) ? '' : kendo.toString(kendo.parseDate(caDueBy, 'yyyy-MM-dd'), 'MM/dd/yyyy') #",
},
],
});Help?
Hello,
I need to disable the button that selects the entire sheet in SpreadSheet. I tried to hide it with CSS but the button remains active.
I have highlighted in yellow the button I am talking about in the screenshot below.
Thanks.
when load
expected
I have a Kendo Date Picker for AngualrJS and I would like to color the individual day cells for a given day within the month.
How do I do that?
I see the JQuery solution, but how do I do that in AngualrJS?
whenever I am trying to add listWidth in Gantt chart it does not accept the width.
it always takes listwidth as zero.
Kendo spreadsheet keyboard navigation using arrow keys not working properly for the last column. please refer below .
Hi
I need create one measure for total sales amount Proportion by product category. For Example:
column measure
Productcate , Productname salesamount amount%
A, A1 100, 58%
A, A2 50 29%
A, A3 20 11%
A subtotal 170 73%
B, B1 50 83%
B, B2 10 17%
b subtotal 60 27%
Total 230 100%
How to design this code function?
Thanks.
James
3 - have ability to make filter simpler(UI, remove group option)
the scenario - I want to have the filter be above the grid & be able to apply the filtering on the server to limit the result set, but at the same time, when the result set is limited give the user the ability to filter the grid on the client using grid row filter