Note that there are some explanatory texts on larger screens.

plurals
  1. POkendoui two KendoUI windows parent and child stop propagation on keypress for current window Popup?
    primarykey
    data
    text
    <p>I have two popUpEdit windows attached to two grids, one parent and one child. I would like to add a keyPress "Enter" to submit or click the Update button. The problem I am having now is that if I press Enter when the child Popup is open it propagates down to the parent container. Here is my code so far.</p> <p>gridSumbitEnterAutoFocus is called in each grid edit function so I thought e.container should be unique and the keyPress would be attached to each particular window. I have also tried stopPropagation but I can't get that to work either. Any help is always appreciated!</p> <p>Ok some new infromation after debugging. I disabled all of my keypress events, but the child popup still responds to the Enter Keypress. I am not sure what it is doing exactly. According to the firebug console it is not calling saveChanges or submitting, but both the child and parent windows close and I go back to my main grid after I hit enter when child Popup has focus. I can hit enter on the parent Popup and nothing happens as expected.</p> <p>Thanks, Dan</p> <pre><code>function gridSumbitEnterAutoFocus(e) { e.container.keypress(function(event) { event.bubbles = false; event.stopPropagation(); debugger; //if the key press is ESC or Enter if (event.keyCode === 27) {//ESC e.sender.cancelChanges(); } else if (event.keyCode === 13) {//ENTER event.bubbles = false; event.stopPropagation(); // e.container.find('.k-grid-update').focus().click(); e.sender.saveChanges(); } }); e.container.data('kendoWindow').bind('activate', function(e) { $('[autofocus]').focus() }) } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload