Cannot see data in legend.

2 posts, 0 answers
  1. Merlin
    Merlin avatar
    15 posts
    Member since:
    Feb 2013

    Posted 14 Jul 2013 Link to this post

    Hi

    I am trying to display some member details in a radlegend but once the content fill its entire dimension, the rest of the data is not shown. So I would like to place a scrollbar so that users can scroll down and view the full content.

    Thanks for any suggestion and help
    Merlin
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 14 Jul 2013 Link to this post

    Hi Merlin,

    One suggestion is you can wrap the RadLegend with a ScrollViewer. Please check the following sample XAML code.

    XAML:
    <ScrollViewer VerticalScrollBarVisibility="Auto" Width="130" Height="350">
        <telerik:RadLegend>
            <telerik:RadLegend.Items>
                <telerik:LegendItemCollection>
                    <telerik:LegendItem MarkerFill="#FF55AA33" MarkerStroke="Black" Title="Legend item 1" />
                    <telerik:LegendItem MarkerFill="#FFCC3399" MarkerStroke="Black" Title="Legend item 2" />
                    <telerik:LegendItem MarkerFill="#FF5511BB" MarkerStroke="Black" Title="Legend item 3" />
                    <telerik:LegendItem MarkerFill="#FF55AA33" MarkerStroke="Black" Title="Legend item 4" />
                    <telerik:LegendItem MarkerFill="#FFCC3399" MarkerStroke="Black" Title="Legend item 5" />
                    <telerik:LegendItem MarkerFill="#FF5511BB" MarkerStroke="Black" Title="Legend item 6" />
                    <telerik:LegendItem MarkerFill="#FF55AA33" MarkerStroke="Black" Title="Legend item 7" />
                    <telerik:LegendItem MarkerFill="#FFCC3399" MarkerStroke="Black" Title="Legend item 8" />
                    <telerik:LegendItem MarkerFill="#FF5511BB" MarkerStroke="Black" Title="Legend item 9" />
                    <telerik:LegendItem MarkerFill="#FF55AA33" MarkerStroke="Black" Title="Legend item 10" />
                    <telerik:LegendItem MarkerFill="#FFCC3399" MarkerStroke="Black" Title="Legend item 11" />
                    <telerik:LegendItem MarkerFill="#FF5511BB" MarkerStroke="Black" Title="Legend item 12" />
                    <telerik:LegendItem MarkerFill="#FF55AA33" MarkerStroke="Black" Title="Legend item 13" />
                    <telerik:LegendItem MarkerFill="#FFCC3399" MarkerStroke="Black" Title="Legend item 14" />
                    <telerik:LegendItem MarkerFill="#FF5511BB" MarkerStroke="Black" Title="Legend item 15" />
                </telerik:LegendItemCollection>
            </telerik:RadLegend.Items>
        </telerik:RadLegend>
    </ScrollViewer>

    Thanks,
    Shinu.
  3. DevCraft banner
Back to Top