Arrow keys

QuestionsArrow keys
Massimo Gagliardi asked 5 years ago

How to focus row with arrow keys Up and Down (same as single mouse click)?
Thanks in advance

3 Answers
Abu Ghufran answered 5 years ago

Latest build have this function. Only works when multiselect is false.

You can edit jqgrid_dist.php and edit following:

<?php if ($this->options["resizable"] === true) { ?>
jQuery("#<?php echo $grid_id?>").jqGrid('gridResize',{});
<?php } ?>

// bind arrow keys navigation <———————————– add following
jQuery("#<?php echo $grid_id?>").jqGrid('bindKeys');

Massimo Gagliardi answered 5 years ago

Abu, thank you.
This is perfect, but to open the edit dialog, after selecting the line with the arrow keys, is possible to use the "enter" key? and how?
Thanks in advance
Massimo Gagliardi

Abu Ghufran answered 5 years ago

You can enable inline edit, but dialog edit is having some issues with onEnter event.

jQuery("#<?php echo $grid_id?>").jqGrid('bindKeys',{'onEnter':function(rowid){ jQuery("tr.jqgrow[id="+rowid+"]").dblclick(); } });

Your Answer

1 + 4 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?