ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Focus on last record then press down key then grid show first record of next page
Title:
B
I
{code}
?
Hello When user press down key, system set next record in awesome grid. awesome grid has focus on last row then user will press down key, then focus move on first record of next page. can you say how can do it ?
Save Changes
Cancel
asked at 21 Dec 2014
Answers
B
I
{code}
?
yes, you need to check if the row is last child when handling down key event so the code would look something like this: if (e.which == 40) //down { if ($row.is(":last-child")) nextPage(); else $row.nextAll('.awe-row').first().focus(); } the same goes for going to previous page when pressing the up key you can see the full solution here: http://aspnetawesome.com/forum/question/714/awesome-grid-add-keyboard-navigation (I've edited the answer and question) btw you can add comments on answers and request additional stuff, or edit your question and add comment on answer informing about that
Save Changes
Cancel
Omu
answered at 22 Dec 2014
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK