This is a migrated thread and some comments may be shown as answers.

ShowLineImages vs skin

6 Answers 32 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Al
Top achievements
Rank 1
Iron
Iron
Iron
Al asked on 01 Aug 2016, 02:02 PM

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?

6 Answers, 1 is accepted

Sort by
0
Al
Top achievements
Rank 1
Iron
Iron
Iron
answered on 01 Aug 2016, 02:04 PM
Sorry about the typo. "what is the correct approach to get node lines with the Metro skin?"
0
Magdalena
Telerik team
answered on 04 Aug 2016, 07:33 AM
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.
0
Al
Top achievements
Rank 1
Iron
Iron
Iron
answered on 04 Aug 2016, 09:04 AM

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

RenderMode="Lightweight"
ShowLineImages="true"

0
Veselin Tsvetanov
Telerik team
answered on 08 Aug 2016, 01:41 PM
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.
0
Al
Top achievements
Rank 1
Iron
Iron
Iron
answered on 10 Aug 2016, 11:41 AM
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.
0
Veselin Tsvetanov
Telerik team
answered on 10 Aug 2016, 02:12 PM
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.
Tags
TreeView
Asked by
Al
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Al
Top achievements
Rank 1
Iron
Iron
Iron
Magdalena
Telerik team
Veselin Tsvetanov
Telerik team
Share this question
or