Hello,
I was wondering if there is some kind of automatic display of custom or model errors. To check this out, I created an example in the dojo.
When the returned data contains the property defined as errors within the model, the error callback is called. But I would have expect that it creates an error message within the Grid like it does with No records available (but maybe in red). Instead the grid remains empty, neither displaying the custom error nor saying No records available.
Is there a way to enable displaying custom errors within the Grid itself like the No records available message? Or will I have to push some DOM elements there by myself in the error function? If the later, is there an event which is called when no model/custom error is there anymore so I know when to remove my DOM elements showing the error?
For short reference here the last grid example from my dojo which just creates an empty grid:
01.
$(
'#grid3'
).kendoGrid({
02.
columns: [{field:
'name'
},{field:
'age'
}],
03.
dataSource:
new
kendo.data.DataSource({
04.
data: { apiError: [
'Server is under maintainance!'
] },
05.
schema: { errors:
'apiError'
},
06.
error:
function
(e) {
07.
console.error(
'grid error:'
, e);
08.
},
09.
}),
10.
noRecords:
true
,
11.
});