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

radticker xml problem

1 Answer 67 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
MG
Top achievements
Rank 1
MG asked on 03 Jun 2010, 06:35 PM

Hello ,

I'm using radticker in my form in that I need to take data from xml file but I'm getting error, FOA I'm using following XML code

<test>
  <test Heading="Heading One" Body="This is Body"/>
  <test Heading="Heasing two" Body="This is body two."/>
</test>

below is what I'm using in aspx code

    <telerik:RadRotator ID="RadRotator1" runat="server" ScrollDirection="Left" ScrollDuration="7000" DataSourceID="XmlDataSource1" RenderingCompatibility="3.5" Skin="Windows7">
    <ItemTemplate>
        <telerik:RadTicker ID="RadTicker1" runat="server" AutoStart="true" LineDuration="4000" Loop="true">
        <Items>
            <telerik:RadTickerItem Text='<%# XPath("Heading") %>'>
            </telerik:RadTickerItem>
            <telerik:RadTickerItem Text='<%# XPath("Body") %>'>
            </telerik:RadTickerItem>
        </Items>
    </telerik:RadTicker>
    </ItemTemplate>
    </telerik:RadRotator>
    <asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/XMLFile.xml">
    </asp:XmlDataSource>

After running this I don't get any output in browser, but if I put simple text instead of xpath.... it appears in browser tickering & rotating but not if I choose from xml file

In above code what I need to do is that firstly heading1 and body1 should ticker in first rotation and heading2 and body2 should ticker in second rotation

If anyone could provide solution for this that would be great for me I tried for this a lot but with no success till now

Plz reply

Thanks

1 Answer, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 08 Jun 2010, 04:26 PM
Hi MG,

I have used the provided information and prepared a demo project for your. Could you please check it attached to this thread and let me know whether it fits your requirements?

Greetings,
Fiko
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.
Tags
Rotator
Asked by
MG
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Share this question
or