Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- onMoveActionMessageReceived = function (data) {
- $("#resultGrid").data("kendoGrid").dataSource.read();
- WebSyncClient.UnsubscribeToMoveTransactionActions($('#moveTransactionIdTxt').val());
- }
- refreshSearchData = function (entityId, entityType) {
- getSearchResultViewItem(entityId, entityType, function (data) {
- var kendoGrid = $("#resultGrid").data("kendoGrid");
- if (kendoGrid) {
- if ($('#SelectedTypeId')[0].value == entityType) {
- var items = kendoGrid.dataSource.data().toJSON();
- for (var i = 0; i < items.length; i++) {
- if (items[i].Id == data.Id) {
- items[i] = data;
- break;
- }
- }
- kendoGrid.dataSource.data(items);
- }
- }
- });
- };
- getSearchResultViewItem = function (entityId, entityType, callback) {
- $.get(baseUrl + 'Search/GetSearchViewDtoById', { id: entityId, searchTypeId: entityId }, function (data) {
- callback(data);
- });
- };
Add Comment
Please, Sign In to add comment