Pricing changes are coming in January. Contact our Sales team to secure the current price for your desired license.

Prevent Collapse

Closed
Massimo asked on June 21, 2021

Hi,
I'have a question, how can i disable the collapse/expand event on cell click (image)? 
Unfortunately solutions like put on customizeCell event something like this:

cell.text = "<div class='notexpandable' onclick='event.stopImmediatePropagation();'>" + data.escapedLabel + "</div>" + parts[1];

doesn't work in our case because the event.stopImmediatePropagation(); stop all the events but we need the onCellClickEvent

Best regards,
Massimo

Attachments:
Capture.JPG

3 answers

Public
Milena Pechura Milena Pechura Flexmonster June 22, 2021

Hello, Massimo,
 
Thank you for posting to our forum.
 
Our team assumes that the solution with the customizeCell method can actually work for your case.
To resolve the issue with click event, we suggest adding an additional layer for clicks handling.
Have a look at the following example (especially 35 and 52 lines of JS code): https://jsfiddle.net/flexmonster/8wbpr5c2/.
 
Please let us know if it helped.
Waiting for your answer.
 
Regards,
Milena

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster June 30, 2021

Hello, Massimo,
 
We are wondering if our solution was helpful for your case.
 
Looking forward to your feedback.
 
Kind regards,
Illia

Public
Massimo July 9, 2021

Hello, Illia 
Yes the solution works. Thank you so much!
Regards,
Massimo

This question is now closed