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

RadCharts within RadRotator?

1 Answer 37 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Greg Harrison
Top achievements
Rank 1
Greg Harrison asked on 15 Nov 2010, 07:24 PM
Hello,

I am attempting to place a couple of RadCharts within a RadRotator in order to show one chart at a time and allow the user to scroll between charts. I have pre-built the charts in their own page, and then moved the design of the each chart to an ItemTemplate control within the Items collection of the RadRotator. When I build the project, I get a number of errors related to HtmlGenericControls and unknown server tags.

Below is a snippet that, when compiled, will show you an example of the errors I'm seeing:

    <telerik:RadRotator runat="server" ID="chartRotator" Width="840px" ItemWidth="800px" Height="400px" ItemHeight="400px" RotatorType="AutomaticAdvance" ScrollDirection="Left" ScrollDuration="7000" WrapFrames="true">
        <Items>
            <telerik:RadRotatorItem runat="server" ID="marketShareItem">
                <ItemTemplate>
                    <telerik:RadChart runat="server" ID="marketSharePie" DefaultType="Pie" Width="800px" AutoLayout="true">
                        <Legend Visible="true">
                            <Items>
                                <telerik:LabelItem>
                                </telerik:LabelItem>
                            </Items>
                        </Legend>
                    </telerik:RadChart>
                </ItemTemplate>
            </telerik:RadRotatorItem>
        </Items>
    </telerik:RadRotator>

Am I missing something?

Thanks,
Greg

1 Answer, 1 is accepted

Sort by
0
Greg Harrison
Top achievements
Rank 1
answered on 15 Nov 2010, 09:22 PM
Oh, I see what I was missing: The "Register" directive for the Telerik.Web.UI namespace!

I do apologize for this; I'll get the hang of Telerik soon enough.

Thanks,
Greg
Tags
Rotator
Asked by
Greg Harrison
Top achievements
Rank 1
Answers by
Greg Harrison
Top achievements
Rank 1
Share this question
or