skip navigation
Telerik UI for ASP.NET AJAX
Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
NEW
: Design Kits for Figma
Online Training
Document Processing Library
Embedded Reporting for web and desktop
Web
Kendo UI
UI for jQuery
UI for Angular
UI for React
UI for Vue
UI for Blazor
UI for ASP.NET Core
UI for ASP.NET MVC
UI for ASP.NET AJAX
Mobile
UI for .NET MAUI
UI for Xamarin
Document Management
Telerik Document Processing
Desktop
UI for .NET MAUI
UI for WinUI
UI for WinForms
UI for WPF
Reporting
Telerik Reporting
Telerik Report Server
Testing & Mocking
Test Studio
Test Studio Dev Edition
Telerik JustMock
CMS
Sitefinity
UI/UX Tools
ThemeBuilder
Design System Kit
Templates and Building Blocks
Debugging
Fiddler
Fiddler Everywhere
Fiddler Classic
FiddlerCap
FiddlerCore
Free Tools
VB.NET to C# Converter
Testing Framework
View all products
Overview
Demos
Roadmap
What's New
Roadmap
Release History
Migrate to Blazor
Docs & Support
Support and Learning
Support and Learning Hub
Docs
Demos
Virtual Classroom
Forums
Videos
Blogs
Accessibility and Security
Submit a Ticket
Productivity and Design Tools
Visual Studio Extensions
ThemeBuilder
Embedded Reporting
Pricing
Shopping cart
Login
Contact Us
Try now
close mobile menu
Telerik Forums
/
UI for ASP.NET AJAX
This is a migrated thread and some comments may be shown as answers.
navigation in the rotator
1 Answer
41 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
komathi priya
Top achievements
Rank 1
komathi priya
asked on
23 Jul 2010,
08:08 AM
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,
Add a comment
Submit comment
Cancel
1 Answer
, 1 is accepted
Sort by
Score
Date
0
Shinu
Top achievements
Rank 2
answered on
23 Jul 2010,
08:37 AM
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.
Add a comment
Submit comment
Cancel
Answer this question
Drag and drop files here or
browse
to attach...
Browse
for files to attach...
Supported file types: PNG, JPG, JPEG, ZIP, RAR, TXT. Max total file size - 20MB.
Submit answer
Cancel
Tags
Rotator
Asked by
komathi priya
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or
Copy link