ShowLineImages vs skin

7 posts, 0 answers
  1. Al
    Al avatar
    203 posts
    Member since:
    Oct 2006

    Posted 01 Aug Link to this post

    Hi,

    I use the metro skin which seems to hide my treeview node lines by default. If I set ShowLIneImages="true" this doesn't have any effect so I what is the correct approach to get no lines with the Metro skin?

  2. Al
    Al avatar
    203 posts
    Member since:
    Oct 2006

    Posted 01 Aug in reply to Al Link to this post

    Sorry about the typo. "what is the correct approach to get node lines with the Metro skin?"
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Magdalena
    Admin
    Magdalena avatar
    421 posts

    Posted 04 Aug Link to this post

    Hi Al,

    The lightweight TreeView supports node lines also in the Metro skin. So to resolve the issue, simply set the render mode to lightweight.

    Regards,
    Magdalena
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  5. Al
    Al avatar
    203 posts
    Member since:
    Oct 2006

    Posted 04 Aug in reply to Magdalena Link to this post

    When I use the code below then I get the node lines but the little expand /collapse indicator disappears

    RenderMode="Lightweight"
    ShowLineImages="true"

  6. Veselin Tsvetanov
    Admin
    Veselin Tsvetanov avatar
    278 posts

    Posted 08 Aug Link to this post

    Hi Al,

    Here is a very simple implementation of a RadTreeView in Lightweight render mode and Metro skin, with its lines shown:
    <telerik:RadTreeView runat="server"
        RenderMode="Lightweight"
        ShowLineImages="true"
        Skin="Metro">
        <Nodes>
            <telerik:RadTreeNode Text="Node 1">
                <Nodes>
                    <telerik:RadTreeNode Text="Node 1.1" />
                    <telerik:RadTreeNode Text="Node 1.2" />
                    <telerik:RadTreeNode Text="Node 1.3" />
                </Nodes>
            </telerik:RadTreeNode>
            <telerik:RadTreeNode Text="Node 2">
                <Nodes>
                    <telerik:RadTreeNode Text="Node 2.1" />
                    <telerik:RadTreeNode Text="Node 2.2" />
                    <telerik:RadTreeNode Text="Node 2.3" />
                </Nodes>
            </telerik:RadTreeNode>
        </Nodes>
    </telerik:RadTreeView>

    On our side, the above renders correctly both lines and the expand / collapse arrow. Could you, please tell us how to modify the above, so it reproduces the problem observed?

    Regards,
    Veselin Tsvetanov
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  7. Al
    Al avatar
    203 posts
    Member since:
    Oct 2006

    Posted 10 Aug in reply to Veselin Tsvetanov Link to this post

    Ok I eventually figured out why mine gave strange behaviour - I had two treeviews on my page, if one is set to lightweight and the other is not then the +/- arrows don't display as expected, set both to lightweight and all is ok.
  8. Veselin Tsvetanov
    Admin
    Veselin Tsvetanov avatar
    278 posts

    Posted 10 Aug Link to this post

    Hi Al,

    The Telerik AJAX controls suite supports only one type of render mode per page for each control type. Using different Render modes would lead appearance issues as the observed.

    Regards,
    Veselin Tsvetanov
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017