-
I have used JStree framework for creating treeview by reading CSV file and then further creating JSON objects. Now I want to add a feature where user can edit particular cell by using click event. I have looked in select-cell option but from that I can get complete data and column number but how to handle the value for editing and performing validity checks. Could anyone guide me on correct way to do it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I am able to achieve this by adding another(custom) grid context. Thanks! I have added similar gridcontext functionality (like the one which is provided by jstreegrid: gridcontext menu for user right click event with required parameters and mapped it with select_cell.jstree-grid event ref: https://github.com/deitch/jstree-grid#:~:text=HTML%20sample%20page.-,select_cell.jstree%2Dgrid,-%3A%20If%20you%20click. Moreover, we have to call it from 'prepare_grid' as shown in below snippet that handles the right click and left click triggers. |
Beta Was this translation helpful? Give feedback.
I am able to achieve this by adding another(custom) grid context. Thanks!
I have added similar gridcontext functionality (like the one which is provided by jstreegrid: gridcontext menu for user right click event
with required parameters and mapped it with select_cell.jstree-grid event ref: https://github.com/deitch/jstree-grid#:~:text=HTML%20sample%20page.-,select_cell.jstree%2Dgrid,-%3A%20If%20you%20click. Moreover, we have to call it from 'prepare_grid' as shown in below snippet that handles the right click and left click triggers.