Hi,
I'm new to this control and seem to be having some trouble getting it to work correctly. I've got an XML file as the data source, however the control only ever shows the first item in the list.
My code is as follows:
XML Source:
It's probably something obvious - can anyone help me out please?
I'm new to this control and seem to be having some trouble getting it to work correctly. I've got an XML file as the data source, however the control only ever shows the first item in the list.
My code is as follows:
<telerik:RadRotator ID="RadRotator1" runat="server" DataSourceID="xmlData" RotatorType="AutomaticAdvance" ScrollDuration="2000" ScrollDirection="Up" FrameDuration="1" Height="200" ItemHeight="100" Width="200" ItemWidth="100"> |
<ItemTemplate> |
<%#System.Web.HttpUtility.HtmlEncode(XPath("Message").ToString())%> |
</ItemTemplate> |
</telerik:RadRotator> |
<asp:XmlDataSource ID="xmlData" DataFile="Messages.xml" XPath="Messages" runat="server"></asp:XmlDataSource> |
XML Source:
<?xml version="1.0" encoding="utf-8" ?> |
<Messages> |
<Message>Frasers Message</Message> |
<Message>Marks message</Message> |
<Message>Jimmys message</Message> |
</Messages> |
It's probably something obvious - can anyone help me out please?