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
100
UltraWebTree Nodes with different indentation
posted

Hello everybody!!

Is there any way for to set the same indentation for nodes with childs and nodes without childs?

Different Indentation

 thanks in advance!!

Parents
No Data
Reply
  • 28464
    posted

    Hello,

    Technically the treeview does not have anything built-in to support this scenario, but I think a workaround is possible. You can use HTML directly in node text and have span with negative margin, this will visually do the same. Example:

        <ignav:UltraWebTree ID="UltraWebTree1" runat="server" DefaultImage=""
            HiliteClass="" HoverClass="" Indentation="20">
            <Levels>
                <ignav:Level Index="0" />
            </Levels>
            <Nodes>
                <ignav:Node Text="Root Node">
                </ignav:Node>
                <ignav:Node Text="Root Node">
                </ignav:Node>
                <ignav:Node Text="Root Node">
                    <Nodes>
                        <ignav:Node Text="Child Node">
                        </ignav:Node>
                        <ignav:Node Text="<span style='margin-left:-15px'>Child Node</span>">
                        </ignav:Node>
                        <ignav:Node Text="Child Node">
                        </ignav:Node>
                    </Nodes>
                </ignav:Node>
            </Nodes>
        </ignav:UltraWebTree>

Children