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
1225
How to change the width of UltraTree Control
posted

Hi friends, Please, I'm working with the UltraTree Control and this moment I have two Problems

1. I'm showing my data on two levels (Category And Products) and I can't modify the width from the Control. The name of my product is cut as in Figure below.

2. At the second level the symbol plus (+) should'nt appear on the left, How Can remove it?.

Please, any idea,

Thanks, God Bless You.

Parents
  • 71886
    Verified Answer
    Offline posted

    Hello ErosDark,

    For the first issue you could try the following code, putting it in the 'InitializeDataNode' event of the 'UltraTree' control:

    foreach (UltraTreeNodeCell col in e.Node.Cells)
                {
    
                    col.Column.PerformAutoResize();
    
                }
    

     

    As to the second question, could you please try setting the 'ShowExpansionIndicator' property:


    ultraTree1.Override.ShowExpansionIndicator = Infragistics.Win.UltraWinTree.ShowExpansionIndicator.CheckOnDisplay; 

    Please feel free to let me know if I misunderstood you or if you have any other questions.

Reply Children