navigation in the rotator

2 posts, 0 answers
  1. komathi priya
    komathi priya avatar
    30 posts
    Member since:
    Apr 2010

    Posted 23 Jul 2010 Link to this post

    hi,


    i'm new to the telerik controls,  i want to show the ads in rotator, i used the following code but it's not working,
     
    the design coding
      <telerik:RadRotator id="radNews" runat="server" ScrollDirection="Up" 
    RotatorType="AutomaticAdvance" InitialItemIndex="0"  
    ScrollDuration="300" ItemWidth="200px" Width="910px" Height="900px" 
    ItemHeight="30px">
    <ItemTemplate>
        <asp:Image ID="Image1" ImageUrl='<%#Eval("ImageUrl")%>' runat="server" />
    <strong>
    <a href='<%#Eva("Url")%>'></a>
    </strong>
    <br />
    <span >Starts:</span>
    <span ><%#Eval("PublishedDate")%></span>
    <br />
    </ItemTemplate>
    <SlideShowAnimation Type="Fade" Duration="300" />
    </telerik:RadRotator>


    i binded the telerik:RadRotator with XML like 
    DataSet ds= new DataSet();
    ds.ReadXml(Server.MapPath("ad.xml"));
           radNews.DataSource = ds;
            radNews.DataBind();

    My XML file is

    <Ad>
        <ImageUrl>images\electronic-medical-records-systems.jpg</ImageUrl>
        
    <AlternateText>ASP.NET Logo</AlternateText>
        <Keyword>A</Keyword>
      
      <Caption>This is the caption for Ad#1</Caption>
        <Title>Test</Title>
        <TargetDate>2/10/2009</TargetDate>
        <Url>www.telerik.com</Url>
        <NewWindow>True</NewWindow>
        <PublishedDate>11/1/2008</PublishedDate>
      </Ad>


    If i click the ad image i want to navigate to the url given.  It's working in asp rotator if i give as target file = "Xml file name" 

    Please reply me soon , i'm in need to complete soon,



  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 23 Jul 2010 Link to this post

    Hello Komathi,

    Here I found some links which shows how to bind RadRotator control with XML file. I hope it will help you.
    Binding to ASP DataSource components
    Rotator / Slide Show

    Have you tried XmlDataSource?

    -Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top