Title: Disable First column in dragdrop plugin of datagrid Post by: Darrel on January 08, 2016, 07:08:36 AM Hello,
I've referred the code to create a datagrid which has draggable columns. I've managed to integrate the plugin with the datagrid plugin that I'm using http://www.jeasyui.com/forum/index.php?topic=279.0 (http://www.jeasyui.com/forum/index.php?topic=279.0). However I have one requirement, i.e, I want to restrict the user from dragging and dropping some beginning columns of the datagrid. For eg, like in case of a datagrid with checkboxes in the first column. I don't want the checkbox column to be draggable. How can I impose this restriction on the user? Thanks & Regards, Darrel Title: Re: Disable First column in dragdrop plugin of datagrid Post by: jarry on January 09, 2016, 12:56:29 AM Please download the datagrid columns extension file from http://www.jeasyui.com/extension/columns_ext.php. Returning false in 'onBeforeDragColumn' event to prevent from dragging a column.
Code: $('#dg').datagrid({ |