Need a special offer?Find out if your project fits.
+

Drag and drop cell

Closed
Massimo asked on August 27, 2021

Hi team,
i have a question, is it possible to drag and drop a cell? are there any events like dragstart dragover e dragend?
Thanks in advance!
 
Massimo

3 answers

Public
Mykhailo Halaida Mykhailo Halaida Flexmonster August 27, 2021

Hi Massimo,
 
Thank you for posting your question.
 
Flexmonster allows dragging the field header cells to rearrange/remove the corresponding fields in the grid. The dragging availability is configurable through the `dragging` property of the Options object.
 
Answering your second question, the component currently does not provide any events related to dragging.  
 
Please let us know if this helps.
 
Best regards,
Mykhailo

Public
Massimo August 30, 2021

Hi Mykhailo,
Thank you for your reply! So the events are not provided... anyway is there a way for disable/enable the multiselection of the cells ?  
Thanks in advance!
 
Massimo

Public
Mykhailo Halaida Mykhailo Halaida Flexmonster August 31, 2021

Massimo,
 
Thank you for your response.
 
If that's what you mean, disabling cell selection in the grid is not natively supported in Flexmonster.
 
However, you can achieve something similar with your custom CSS combined with the showAutoCalculationBar: false property of the Options object.
 
Here's a sample showcasing this approach: https://jsfiddle.net/flexmonster/5p7g6n41.
 
Hope this helps!
 
Regards,
Mykhailo

This question is now closed