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

Legend.Appearance.Position.AlignedPosition Right same as TopRight

8 Answers 370 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
raptor22
Top achievements
Rank 1
raptor22 asked on 17 Feb 2009, 05:18 PM

Two issues with RadChart legend position alignment (using RadControls for ASP.NET AJAX 2008.3.1314):

  1. Documentation suggests that "CenterRight" and "CenterLeft" are valid values for Legend.Appearance.Position.AlignedPostion; they are not. I'm assuming the correct values for the same positioning as shown in the image are "Right" and "Left".
  2. Setting AlignedPostion=Right results in the same positioning as AlignedPosition=TopRight. AlignedPosition=Right does not actually position the legend at the center-right as expected (instead it is actually positioned at the top-right); however, AlignedPosition=Left does position the legend at the center-left as expected.

    I'm setting Position-AlignedPosition declaratively in the markup:
    <Legend> 
        <Appearance Dimensions-Margins="15%, 2%, 1px, 1px" 
            Dimensions-Paddings="2px, 8px, 6px, 3px" Position-AlignedPosition="Right">  
            <ItemTextAppearance TextProperties-Color="Black">  
            </ItemTextAppearance> 
            <ItemMarkerAppearance Figure="Square">  
            </ItemMarkerAppearance> 
        </Appearance> 
    </Legend> 
     

 Here's the entire RadChart:

<telerik:RadChart ID="RadChart1" runat="server" SeriesOrientation="Vertical" Skin="Office2007" 
    DataSourceID="SqlDsRepairCosts" Width="800px">  
    <Series> 
        <telerik:ChartSeries DataYColumn="LABOR_OWL" DefaultLabelValue="#Y{c0}" Name="OWL Labor">  
        </telerik:ChartSeries> 
        <telerik:ChartSeries DataYColumn="LABOR_SFW" DefaultLabelValue="#Y{c0}" Name="SFW Labor">  
        </telerik:ChartSeries> 
        <telerik:ChartSeries DataYColumn="MATERIAL_COSTS" DefaultLabelValue="#Y{c0}" Name="Material Costs">  
        </telerik:ChartSeries> 
        <telerik:ChartSeries DataYColumn="TOTAL_ALLOCATED_SUPPORT_COSTS" DefaultLabelValue="#Y{c0}" 
            Name="Allocated Support Costs">  
        </telerik:ChartSeries> 
    </Series> 
    <PlotArea> 
        <XAxis Visible="False">  
            <Appearance Color="134, 134, 134" MajorTick-Color="134, 134, 134">  
                <MajorGridLines Color="134, 134, 134" Width="0" /> 
                <TextAppearance TextProperties-Color="Black">  
                </TextAppearance> 
            </Appearance> 
            <AxisLabel> 
                <Appearance RotationAngle="270">  
                </Appearance> 
                <TextBlock> 
                    <Appearance TextProperties-Color="Black">  
                    </Appearance> 
                </TextBlock> 
            </AxisLabel> 
        </XAxis> 
        <YAxis> 
            <Appearance Color="134, 134, 134" MajorTick-Color="134, 134, 134" MinorTick-Color="134, 134, 134" 
                CustomFormat="$#,##0">  
                <MajorGridLines Color="134, 134, 134" /> 
                <MinorGridLines Color="134, 134, 134" /> 
                <TextAppearance TextProperties-Color="Black">  
                </TextAppearance> 
            </Appearance> 
            <AxisLabel> 
                <Appearance RotationAngle="0">  
                </Appearance> 
                <TextBlock> 
                    <Appearance TextProperties-Color="Black">  
                    </Appearance> 
                </TextBlock> 
            </AxisLabel> 
        </YAxis> 
        <YAxis2> 
            <AxisLabel> 
                <Appearance RotationAngle="0">  
                </Appearance> 
            </AxisLabel> 
        </YAxis2> 
        <Appearance> 
            <FillStyle FillType="Solid" MainColor="">  
            </FillStyle> 
        </Appearance> 
    </PlotArea> 
    <Appearance> 
        <Border Color="134, 134, 134" /> 
    </Appearance> 
    <ChartTitle Appearance-Position-AlignedPosition="Top">  
        <Appearance> 
            <FillStyle MainColor="">  
            </FillStyle> 
        </Appearance> 
        <TextBlock Text="Repair Costs Breakdown">  
            <Appearance TextProperties-Color="Black" TextProperties-Font="Arial, 18px">  
            </Appearance> 
        </TextBlock> 
    </ChartTitle> 
    <Legend> 
        <Appearance Dimensions-Margins="15%, 2%, 1px, 1px" 
            Dimensions-Paddings="2px, 8px, 6px, 3px" Position-AlignedPosition="Right">  
            <ItemTextAppearance TextProperties-Color="Black">  
            </ItemTextAppearance> 
            <ItemMarkerAppearance Figure="Square">  
            </ItemMarkerAppearance> 
        </Appearance> 
    </Legend> 
</telerik:RadChart>

Am I doing something wrong?

8 Answers, 1 is accepted

Sort by
0
Accepted
Giuseppe
Telerik team
answered on 20 Feb 2009, 11:26 AM
Hi raptor22,

Thank you for contacting us.

Onto your questions:

1. Indeed you are right the correct settings representing "CenterRight" / "CenterLeft" are "Right" / "Left".
2. We must admit this is a problem with the Office2007 skin and this specific legend position option ("Right") -- we have forwarded it to our developers and they will address the issue for the next official release.

We have updated your Telerik points for the reports.


Best wishes,
Manuel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
raptor22
Top achievements
Rank 1
answered on 23 Feb 2009, 03:53 PM
Okay, thanks for looking into this and getting back to me.
0
Tim
Top achievements
Rank 1
answered on 12 May 2011, 08:53 PM
I'm seeing very similar behavior across all skins that I've tried.  Effectively the "corner positions" like TopRight and BottomRight are being translated as Right and Bottom respectively.
0
Tim
Top achievements
Rank 1
answered on 16 May 2011, 03:14 PM
Has anyone else seen this?  Is this a known issue in the current release or have these options been deprecated perhaps?
0
Bartholomeo Rocca
Top achievements
Rank 1
answered on 17 May 2011, 10:11 AM
Hello Tim,

Could you elaborate which skins you are using?

Generally if you have enabled the AutoLayout feature, the supported AlignedPosition options for Title and Legend elements are Top, Bottom, Left, Right only (see help article http://www.telerik.com/help/aspnet-ajax/radchart-auto-layout.html).

Greetings,
Bart.
0
Jimmy
Top achievements
Rank 1
answered on 17 Jun 2011, 08:48 AM
Please update the online documentation (http://www.telerik.com/help/aspnet-ajax/radchart-legend.html) to include that very important piece of information. It is so frustrating wasting time on debugging, when there is actually an explaination.
0
Giuseppe
Telerik team
answered on 22 Jun 2011, 12:37 PM
Hello Jimmy,

We will update the legend & title help topics to cross-reference the positioning information from the AutoLayout topic for the next version of the control.


Kind regards,
Giuseppe
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Jimmy
Top achievements
Rank 1
answered on 22 Jun 2011, 12:39 PM
Hello again.

Thank you very much - appreciate it :-)
Tags
Chart (Obsolete)
Asked by
raptor22
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
raptor22
Top achievements
Rank 1
Tim
Top achievements
Rank 1
Bartholomeo Rocca
Top achievements
Rank 1
Jimmy
Top achievements
Rank 1
Share this question
or