jQuery UI Widgets › Forums › Grid › How can I bind a “keydown OR Keypress” event to a jqgrid cell?
Tagged: jqxGrid ;, Jqxgrid cell, keyboard, keyboard navigation
This topic contains 6 replies, has 4 voices, and was last updated by Peter Stoev 6 years, 11 months ago.
-
Author
-
Hi Team,
I am using Jqxgrid and the cell type is textbox, in which i need to invoke the custom function when we enter any character to the textbox.Can we use the ‘Keydown’ or ‘keypress’ event in the jqxgrid cell like we use in HTML 5?
Hello anandbidua,
I would suggest taking a look at these examples and documentation:
https://www.jqwidgets.com/handle-keys-in-jqxgrid/
https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/index.htm#demos/jqxgrid/handlekeyboard.htm (Custom Keyboard Navigation)
https://www.jqwidgets.com/community/topic/need-key-down-event-in-grid/I hope you find something helpful.
Best Regards,
StanislavjQWidgets Team
http://www.jqwidgets.com/September 18, 2017 at 11:24 am How can I bind a “keydown OR Keypress” event to a jqgrid cell? #96095Thanks.
Hi,
is this also possible with the TreeGrid component?
Could you provide us some code example?Our problem is as following: we have a Treegrid with a checkbox column, and we woud like to capture the event keyDownPress (CTRL + Click) in order to execute a function.
On the other hand, we would like to know if is possible and how to overwrite methods Rowselected/Unselected. If you could provide us with a simple example, we would be very grateful.
Thanks.
Best Regards,
Nekane F.Hi Nekane F.
For the TreeGrid have you tried binding to the keydown event of the component?
Best Regards,
Peter StoevjQWidgets Team
https://www.jqwidgets.comHi,
we are not able to find it in the documentation. Could you please send us an example of it?Best regards,
Nekane F.Hi Nekane F.
I meant the native javascript binding like that:
htmlElement.addEventListener('keydown', (event) => { // handle key down. });Best Regards,
Peter StoevjQWidgets Team
https://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.