1
Help for ParamQuery Pro / Re: Losing occasional focus, after edit event
« on: November 08, 2013, 09:57:23 pm »
Ok. Thanks for the info. Valid points.
My ajax calls are async.
I did find one distinct difference on when it works, and doesn't work.
When I use the "enter" key, it works fine, to complete edit, and advance to the next one, it works perfectly.
When I press "tab" to complete an item, though, is when it doesn't work. It puts the focus in the page box at the bottom.
My editModel:
editModel: {
clicksToEdit: '1',
saveKey: $.ui.keyCode.ENTER, // or 13. http://api.jqueryui.com/jQuery.ui.keyCode/
select: false,
keyUpDown: false,
cellBorderWidth: 0
}
Hmm, so maybe what I need to do is to use the cellEditKeyDown event, so that i can bind both Tab and Enter. Im also thinking of using the up/down arrow keys, and I think you have a good example for using that event.
My ajax calls are async.
I did find one distinct difference on when it works, and doesn't work.
When I use the "enter" key, it works fine, to complete edit, and advance to the next one, it works perfectly.
When I press "tab" to complete an item, though, is when it doesn't work. It puts the focus in the page box at the bottom.
My editModel:
editModel: {
clicksToEdit: '1',
saveKey: $.ui.keyCode.ENTER, // or 13. http://api.jqueryui.com/jQuery.ui.keyCode/
select: false,
keyUpDown: false,
cellBorderWidth: 0
}
Hmm, so maybe what I need to do is to use the cellEditKeyDown event, so that i can bind both Tab and Enter. Im also thinking of using the up/down arrow keys, and I think you have a good example for using that event.