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

Hyperlink on bar

1 Answer 88 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Avinash
Top achievements
Rank 1
Avinash asked on 16 Dec 2010, 08:24 PM
Hi,

I am going through all telerik chart control setting and it is quite friendly for the person who is using it first time.

Actually I am stuck-up on one point.

My requirement is, there will be two series on the bar chart. one for self rating and other for peers rating against month. suppose self has not done rating for myself for a perticular month then instead of blank bar, I need to show Hyperlink / or image button. So user will come to know, for which months he has to submit rating.

So is it possible to show such image or hyperlink if data is null or empty in case.

Awating for reply.

Avinash

1 Answer, 1 is accepted

Sort by
0
Evgeni "Zammy" Petrov
Telerik team
answered on 21 Dec 2010, 05:41 PM
Hello Avinash,

 You can add url to chart item like that :

foreach (var item in RadChart1.Series[0].Items)
{
    item.ActiveRegion.Url = "http://www.google.com/";
}

You can also change the style of  an empty item in some way to show that it is empty and it needs to be added. Here is an example -- the bar is not set as empty, but it is transparent and its label says "Click here" :

<telerik:ChartSeries Name="Series 2">
    <Appearance Border-Width="0">
        <LabelAppearance LabelLocation="Inside">
        </LabelAppearance>
    </Appearance>
    <Items>
        <telerik:ChartSeriesItem Name="Item 1" YValue="1">
            <Appearance FillStyle-FillType="Solid" FillStyle-MainColor="Transparent">
            </Appearance>
            <Label TextBlock-Text="Click Here">
            </Label>
            <ActiveRegion Url="http://www.telerik.com" />
        </telerik:ChartSeriesItem>
        <telerik:ChartSeriesItem Name="Item 2" YValue="2">
            <ActiveRegion Url="http://www.telerik.com" />
        </telerik:ChartSeriesItem>

Kind regards,
Evgeni "Zammy" Petrov
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.
Tags
Chart (Obsolete)
Asked by
Avinash
Top achievements
Rank 1
Answers by
Evgeni "Zammy" Petrov
Telerik team
Share this question
or