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

Transition Control to Change the user control after some time interval

3 Answers 141 Views
TransitionControl
This is a migrated thread and some comments may be shown as answers.
Nikhil
Top achievements
Rank 1
Nikhil asked on 28 Jun 2011, 06:57 AM
Hi,

I have 2 Silverlight user controls added in the page. i want to show them at the same place in the page. like at start control1 will be displayed and after some time Control1 will be collapse and control 2 will be displayed. For transition purpose i am want to use Rad Transition control. I tried to do that but somewhere i am failing to add those controls to Transition control.
Could you please help me.

3 Answers, 1 is accepted

Sort by
0
Accepted
Ivo
Telerik team
answered on 30 Jun 2011, 04:29 PM
Hi Nikhil,

I would suggest you to check this blog. There is a demo attached to it, so you can examine it. You can place whatever elements you need into the <adRotator:AdsCollection> tag from the demo, for example:
<adRotator:AdsCollection>
    <Button Content="1" Width="60" Height="60"/>
    <Button Content="2" Width="60" Height="60"/>
    <Button Content="3" Width="60" Height="60"/>
    <Button Content="4" Width="60" Height="60"/>
</adRotator:AdsCollection>

Hope this helps.

Greetings,
Ivo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Sam
Top achievements
Rank 1
answered on 24 Apr 2012, 04:42 PM
Hi Nikhil,

I used this AdCollection class that you mentioned below and it works like a charm!

Now...I have a collection of UserControls (views) that I am using the Transition Control to cycle through. They are defined as such:

<telerik:RadTransitionControl x:Name="radTranstionControl" 
              chartExtensions:ChartRotatorExtensions.ItemChangeDelay="0:0:20"
              chartExtensions:ChartRotatorExtensions.CurrentSelectedIndex="0"
              VerticalAlignment="Center" HorizontalAlignment="Center">
            <telerik:RadTransitionControl.Easing>
                <BackEase EasingMode="EaseInOut" Amplitude="1" />
            </telerik:RadTransitionControl.Easing>
            <telerik:RadTransitionControl.Transition>
                <telerikTransitions:PixelateTransition />
            </telerik:RadTransitionControl.Transition>
            <chartExtensions:ChartRotatorExtensions.ItemsSource>
                <chartExtensions:ChartsCollection>
                    <RadChartViews:PriorityTicketView />
                    <RadChartViews:TotalElapsedOpenTicketsView />
                </chartExtensions:ChartsCollection>
            </chartExtensions:ChartRotatorExtensions.ItemsSource>
        </telerik:RadTransitionControl>


You can see my views being added to the ChartsCollection object. These views contain RadCharts. If you want me to post this to the RadChart forum, I will. But since this has to do with a subject found here (and I am using the Transition Control), I posted it here.

Anyway, my problem is these views get instantiated in order to put them into the collection. When you cycle through, the first chart displays fine. All subsequent charts display default data only regardless of how I programmatically create and databind them.

My question is, what is the best way to see if a RadChart has been simply created (i.e. new RadChart() ) and contains dummy data or if it has real data in it?

-Sam
0
Ivo
Telerik team
answered on 27 Apr 2012, 01:03 PM
Hello,
RadChart does not display default data, so if a chart displays any data, it has been populated. You can peek the value of RadChart.DefaultView.ChartArea.DataSeries in order to check what data is currently displayed by the chart, but the bottom line is that if RadChart displays data, it has been put there.

All the best, Ivo
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
TransitionControl
Asked by
Nikhil
Top achievements
Rank 1
Answers by
Ivo
Telerik team
Sam
Top achievements
Rank 1
Share this question
or