Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
120
How to remove the expand button when child list is empty?
posted

Hi All,

In a hierarchical grid, there is an expand button (+) in front of the parent row. When the parent row's children list is empty, this button is still displaying after initialization. Then, when user click the button, it disappears. 

I don't like such displaying style.  Can I achieve one of the following:

#1. Not show the (+) button if the parent doesn't have children, even after initialization. 

OR

#2. Always show expand button. if the parent doesn't have children, show (+) first. and show (+/-) alternately when user clicks. 

Thanks. 

Parents
No Data
Reply
  • 0
    Offline posted

    Adding following code on .cs -> Initialize Layout function will resolve the above issue. This.UltraGrid1.DisplayLayout.Override.ExpansionIndicator = ShowExpansionIndicator.CheckOnDisplay;

Children
No Data