Categories | Question details Back To List | ||
Use Context menu to move selected rows from one grid to another. We are using grid to manage group access to our users, and we have drag and drop enabled. We want to use Context menu and add a item Add access and Remove access in our grid. We have 2 grids beside each other, and would like to get the add access in the right grid, and remove access in the left grid instead of using drag and drop. Is there an event or function that will allow us to do this? Answer posted by dhxSupport on Sep 29, 2009 02:37 You can attach dhtmlxMenu to the grid and use it like context menu. Please find examples here http://www.dhtmlx.com/docs/products/dhtmlxGrid/samples/03_context_menu/ Answer posted by Frank S. Waaland on Sep 29, 2009 04:03 But how can i move one or more selected row from one grid to another grid on the same page. I want to do the same as drag and drop function, but want to use context menu. Answer posted by dhxSupport on Sep 29, 2009 04:22 You can use moveRow() method. Please check example here http://www.dhtmlx.com/docs/products/dhtmlxGrid/samples/16_rows_columns_manipulations/19_pro_move_row.html Answer posted by Frank S. Waaland on Sep 29, 2009 04:28 As always, excellent service, excellent product. thank you. |