This is a migrated thread and some comments may be shown as answers.

Showing a notification after refreshing the datasource

1 Answer 148 Views
Grid
This is a migrated thread and some comments may be shown as answers.
BitShift
Top achievements
Rank 1
Veteran
BitShift asked on 08 Jan 2016, 10:23 PM

Im doing something like this inside the success block of an ajax call.  The grid data is refreshed, but the alert ( as a test) as well as my pop up notification are not shown.  Is this expected behavior, or am I doing something wrong.

 

success: function (result) {
 
 
 
    var statementBatchDS = $('#StatementBatch').data().kendoGrid.dataSource;
    statementBatchDS.data(result.Data);
 
    //test
    //var popupNotification = $("#popupNotification").data("kendoNotification");
    //popupNotification.show("Batch post error", "error");
 
    alert('made it and name=' + $("#popupNotification").attr('id'));
 
 
    var d = new Date();
    popupNotification.show(kendo.toString(d, 'HH:MM:ss.') + kendo.toString(d.getMilliseconds(), "000"), "error");
 
    }

 

 

 

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 12 Jan 2016, 12:45 PM

Hello BitShift,

 

Could you please check for any errors in your console? Refreshing the data of the Kendo UI Grid should not affect the execution of the logic in the success block. 

 

Regards,
Boyan Dimitrov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
BitShift
Top achievements
Rank 1
Veteran
Answers by
Boyan Dimitrov
Telerik team
Share this question
or