Get Free Trial

Don't expand if only contains blanks!

Ashley Murphy asked on February 26, 2019

In my example you can see that Battery is expandable, even though it only contains 1 item below (blank).
Is it possible to make it so it won’t expand in this case, as it doesn’t add anything extra? If not automatically, is there a manual way to specify which shouldn’t expand?


2 answers

Iryna Kulchytska Iryna Kulchytska Flexmonster February 28, 2019

Hello Ashley,
Thank you for posting your question here.
The component does not have a built-in option you can set to prevent expanding of the nodes only with (blank) item within.
I prepared a sample for you where customizeCell is used It illustrates how the expand icon can be removed and how the expand action can be prevented for the specific cell.
Please let me know if the JSFiddle sample is useful for your case.
Kind regards,

Vera Didenko Vera Didenko Flexmonster April 2, 2019

Hello, Ashley,

Could you please let us know whether such a solution works for you?

Looking forward to hearing from you. 

Best Regards,

Please login or Register to Submit Answer