Legend.Appearance.Position.AlignedPosition Right same as TopRight

Thread is closed for posting
9 posts, 1 answers
  1. raptor22
    raptor22 avatar
    8 posts
    Member since:
    Sep 2007

    Posted 17 Feb 2009 Link to this post

    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?
  2. Answer
    Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 20 Feb 2009 Link to this post

    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.
  3. raptor22
    raptor22 avatar
    8 posts
    Member since:
    Sep 2007

    Posted 23 Feb 2009 Link to this post

    Okay, thanks for looking into this and getting back to me.
  4. Tim
    Tim avatar
    6 posts
    Member since:
    Aug 2012

    Posted 12 May 2011 Link to this post

    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.
  5. Tim
    Tim avatar
    6 posts
    Member since:
    Aug 2012

    Posted 16 May 2011 Link to this post

    Has anyone else seen this?  Is this a known issue in the current release or have these options been deprecated perhaps?
  6. Bartholomeo Rocca
    Bartholomeo Rocca avatar
    247 posts
    Member since:
    May 2006

    Posted 17 May 2011 Link to this post

    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.
  7. Jimmy
    Jimmy avatar
    22 posts
    Member since:
    Nov 2008

    Posted 17 Jun 2011 Link to this post

    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.
  8. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 22 Jun 2011 Link to this post

    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.

  9. Jimmy
    Jimmy avatar
    22 posts
    Member since:
    Nov 2008

    Posted 22 Jun 2011 Link to this post

    Hello again.

    Thank you very much - appreciate it :-)
Back to Top