Ticker & problem

2 posts, 0 answers
  1. Joe
    Joe avatar
    1 posts
    Member since:
    Oct 2012

    Posted 11 Oct 2012 Link to this post

    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>
  2. Slav
    Admin
    Slav avatar
    1356 posts

    Posted 16 Oct 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top