I have a layout with collapsable cells. One of the cells has iframe attached to it (there was no attachFrame() method so i used inline html string in order to attach the iframe). However whenever i collapse the cell, next time i expand it ALL THE STATE IS LOST AND THE IFRAME PAGE reloads WHICH IS causing me MAJOR TROUBLE!!!)
How can i simply HIDE!!! the cell content when i collapse it, so ALL THE CONTENT keeps being rendered on the page!!! PLS HELP!!!
THIS IS SERIOUSLY GETTING ME IN TROUBLE!
Sorry for using capital letters but i simply cant believe this is happening to me!!! HOPE I AM DOING SOMETHING WRONG
Hello Nikolai.
Unfortunately there is no possibility for the layout to save all the content added by the user in the iframe, while due to virtual DOM usage all the hidden dhx objects are clearing from the page.
The only solution in this case is to save all the entered data before collapsing a cell:
https://docs.dhtmlx.com/suite/layout/api/layout_beforecollapse_event/
and restore it manually after the cell was expanded:
https://docs.dhtmlx.com/suite/layout/api/layout_afterexpand_event/
i hope u are joking because the Suite is unusable in this case. virtual dom has its own purpose in web development but in this case i simply want to hide some content so i have more space and I DO NOT WANT TO WRITE 1000+ lines of extra code for that purpose.
Obviously this Suite is a joke and nobody is using it for real life purpose otherwise this support forum would be bombarded with requests to implement a normal “display:none” method or SIMPLY LET THE USER DECIDE HOW THE hide() and collapse() method should behave.
I truly hope next week u guys submit some update and make this Suite 7 joke usable for REAL WORLD purposes because the only reason somebody lands here is because of Suite 5 which was working fine and saving lots of time for the developers.
IT MAKES ABOSULUTELLY NO SENSE TO ERASE CONTENT FROM PAGE and KILL THE APP STATE.
I still want to believe this is some joke and next week ur dev team stop drinking russian vodka but make this suite 7 usable in case u want to have clients who use it in the real world.
(No hate!)