JqGrid keyboard navigation
I have an editable Jqgrid(where when im clicking on a row, that row get editable) with 3 dropdown lists in it, what i want is:
- when im clicking on a row, its get editable and selects first dropdown in a row
- after i choosed an object in dropdown list and pressed tab it jumps to the next dropdown (already happends)
- same as the 2. but it have to jump to the third dropdown list
- when im done editing, when i press down key or just press somewhere else on the sc开发者_开发百科reen data which i edited should be saved to DB. so it have to happend withount me pressing enter key, which i have to do now.
- if i press down key, selection have to jump down to next row and save the previouse row which i just edited
I know its a long one, but i cant get path keyboard selection because im stuck with clickable edit....
If you don't use multiselect:true
you can use bindKeys method to have keyboard support.
If you need to change the order of focus on Tab pressing you can change tabindex
attribute on the editable fields (input or select elements). You can use oneditfunc
parameter of editRow for such initialization actions.
精彩评论