Posted 04 Jun 2019 Link to this post
On a grid is it possible to display an error message from the viewmodel datasource in the no records template?
I know you can display a custom string like this.
data-no-records="{ template: 'No Records Today!'}"
Posted 06 Jun 2019 Link to this post
onError:
function
(e){
$(
'.k-grid-norecords-template'
).html(e.message)
}
Posted 06 Jun 2019 in reply to Georgi Link to this post
Cool Thanks,
I think it's actually the 'error' event (at least in my case it is) error: function (xhr, error) { $('.k-grid-norecords-template').html( xhr.xhr.status + ' ' + xhr.xhr.statusText) ; },
Posted 10 Jun 2019 Link to this post
error: function (xhr, error) {
...