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
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
Hello, Massimo,
We are wondering if our solution was helpful for your case.
Looking forward to your feedback.
Kind regards,
Illia
Hello, Illia
Yes the solution works. Thank you so much!
Regards,
Massimo
Hello Massimo,
Hope you are doing great!
The Flexmonster team is happy to let you know that we have recently added a new functionality to our pivot, which we believe you might find valuable.
We have added a new grid.disableExpandAndCollapse option. You can set it to true to disable expand and collapse functionality for cells on the grid. Please check the following example for reference: https://jsfiddle.net/flexmonster/xm7qya3b/.
This feature is available starting with the 2.9.116 version of Flexmonster: https://www.flexmonster.com/release-notes/version-2-9-116/. You are welcome to update the component to the latest version. Here is our updating guide for assistance: https://www.flexmonster.com/doc/updating-to-the-latest-version/
If you have any questions or feedback, we are here to help.
Kind regards,
Nadia