Why doesn't Popup Kendo close when I click on Update?

object json

When Popup window opens and I click on update, the window doesn't close

I want the window close when I click on Update

jsfiddle code

Button update code

save: function (e) {

            $.ajax({

                url: '/api/apdevice',
                type: 'POST',
                contentType: 'application/json',
                data: JSON.stringify(e.model),

                success: function (data) {
                  alert('yes');

                },

                error: function (data) {
                   alert('no');
                }

            });
        }
ryan

You need to tell the grid what to do after a success or error. Check out the grid methods. In this example I used refresh and cancelRow.

save: function (e) {
    var that = this;
    $.ajax({

        url: '/api/apdevice',
        type: 'POST',
        contentType: 'application/json',
        data: JSON.stringify(e.model),
        success: function (data) {
            alert('yes');
            that.refresh();
        },

        error: function (data) {
            alert('no');
            that.cancelRow();
        }

    });
}

Here's some updated fiddles:

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

WPF popup doesn`t close on click

From Dev

AngularJs: why doesn't ng-switch update when I use ng-click?

From Dev

Why doesn't onActivityResult() works when I close a second Activity?

From Dev

utorrent doesn't close when I close it

From Dev

Why doesn't the hidden container reappear when I click on it?

From Dev

Why isn’t EVT_CLOSE fired when I click the OK or Cancel buttons in a wx.Dialog?

From Dev

Why doesn't `loadFont` close input stream? Should I close it?

From Dev

Why is a destructor not called when I click the close button on the console?

From Dev

Why the timer class i added to my project the timer doesn't start when i click the button?

From Dev

Why gapi.auth.authorize with "immediate: false" doesn't close popup and fire callback?

From Dev

Why doesn't this Tkinter 'after' loop stop when I click stop?

From Dev

ng2-smartTable add form doesn't close when we cancel the windows confirmation popup

From Java

Android service doesn't restart when I close app

From Dev

Laptop doesn't hibernate when I close the lid in Ubuntu 14.04

From Dev

MessageBox doesn't close when I use KeyUp event

From Dev

Button inside popup doesn't trigger click event outside the popup

From Dev

Muzei database doesn't update when I update external JSON

From Dev

How to make ionic popup close when click on background

From Dev

DropDown doesn't close on click out

From Dev

My PopUpWindow doesn't open when I click on the button

From Dev

EditText input doesn't appear when I click in an edittextpreference

From Dev

when i click button,new button appears and it doesn't work

From Dev

Function doesn't run when I click on the button

From Dev

Meteor app - facebook login - popup doesn't close

From Dev

$(this).hide(); doesn't close the popup div no matter what. jQuery

From Dev

jquery mobile popup close button doesn't always work

From Dev

Why my Android ActionBar doesn't update when it is explictily changed

From Dev

Menu's inks doesn't work if i use JQuery $(window).click(function() to close the menu

From Dev

Close popup after button click

Related Related

  1. 1

    WPF popup doesn`t close on click

  2. 2

    AngularJs: why doesn't ng-switch update when I use ng-click?

  3. 3

    Why doesn't onActivityResult() works when I close a second Activity?

  4. 4

    utorrent doesn't close when I close it

  5. 5

    Why doesn't the hidden container reappear when I click on it?

  6. 6

    Why isn’t EVT_CLOSE fired when I click the OK or Cancel buttons in a wx.Dialog?

  7. 7

    Why doesn't `loadFont` close input stream? Should I close it?

  8. 8

    Why is a destructor not called when I click the close button on the console?

  9. 9

    Why the timer class i added to my project the timer doesn't start when i click the button?

  10. 10

    Why gapi.auth.authorize with "immediate: false" doesn't close popup and fire callback?

  11. 11

    Why doesn't this Tkinter 'after' loop stop when I click stop?

  12. 12

    ng2-smartTable add form doesn't close when we cancel the windows confirmation popup

  13. 13

    Android service doesn't restart when I close app

  14. 14

    Laptop doesn't hibernate when I close the lid in Ubuntu 14.04

  15. 15

    MessageBox doesn't close when I use KeyUp event

  16. 16

    Button inside popup doesn't trigger click event outside the popup

  17. 17

    Muzei database doesn't update when I update external JSON

  18. 18

    How to make ionic popup close when click on background

  19. 19

    DropDown doesn't close on click out

  20. 20

    My PopUpWindow doesn't open when I click on the button

  21. 21

    EditText input doesn't appear when I click in an edittextpreference

  22. 22

    when i click button,new button appears and it doesn't work

  23. 23

    Function doesn't run when I click on the button

  24. 24

    Meteor app - facebook login - popup doesn't close

  25. 25

    $(this).hide(); doesn't close the popup div no matter what. jQuery

  26. 26

    jquery mobile popup close button doesn't always work

  27. 27

    Why my Android ActionBar doesn't update when it is explictily changed

  28. 28

    Menu's inks doesn't work if i use JQuery $(window).click(function() to close the menu

  29. 29

    Close popup after button click

HotTag

Archive