Don't expand if only contains blanks!

Ashley Murphy asked on February 26, 2019

Hi,
 
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?
 
Thanks,
Ashley

Attachments:
example.png

2 answers

Public
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 https://jsfiddle.net/flexmonster/up8rn0ax/. 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,
Iryna

Public
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,
Vera

Please login or Register to Submit Answer