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

Ticker & problem

1 Answer 36 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 1
Joe asked on 11 Oct 2012, 01:18 PM
Hi,
 If I put content such as M&T in the RadTickerItem it changes the  & to &. Is there a way to stop this from happening? In the code below the Ham & Eggs becomes Ham & Eggs.
<telerik:RadTicker AutoStart="true" runat="server" ID="Radticker1" Loop="true">
    <Items>
        <telerik:RadTickerItem >Ham & Eggs</telerik:RadTickerItem>
        <telerik:RadTickerItem>M&T<telerik:RadTickerItem>
        <telerik:RadTickerItem>AT&T<telerik:RadTickerItem>
    </Items>
</telerik:RadTicker>

1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 16 Oct 2012, 08:40 AM
Hi Joe,

By design the RadTicker control does not support '&' characters in its content and in your case I would recommend using the RadRotator control instead. You can configure the rotator to behave like a RadTicker control (not exactly but similar) and show the desired content as demonstrated in the following code sample:
<telerik:RadRotator runat="server" ID="RadRotator1"
    ItemHeight="100px" Height="100px" Width="200px" ItemWidth="200px" FrameDuration="1"
    ScrollDuration="5000">
    <Items>
        <telerik:RadRotatorItem>
            <ItemTemplate>
                Ham & Eggs
            </ItemTemplate>
        </telerik:RadRotatorItem>
        <telerik:RadRotatorItem>
            <ItemTemplate>
                M&T
            </ItemTemplate>
        </telerik:RadRotatorItem>
        <telerik:RadRotatorItem>
            <ItemTemplate>
                AT&T
            </ItemTemplate>
        </telerik:RadRotatorItem>
    </Items>
</telerik:RadRotator>


Regards,
Slav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Rotator
Asked by
Joe
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or