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

dynamically add item to radticker

3 Answers 115 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
appdev
Top achievements
Rank 1
appdev asked on 17 Jun 2010, 09:46 PM
i am trying to build a scroller just like the one on the demo page but instead of multiple i only want 1 scroller. however, i want to be able to generate data on the server side and then add the column in as i want. is there a way for me to do that?
i have included an image of the demo on your page hope fully that will help explaining what i'm trying to do. thanks

i have this and it doesn't display anything. can you help me please. thanks

<telerik:RadRotator ScrollDirection="left" FrameDuration="1" Width="435" ItemWidth="145" Height="24" ItemHeight="24"   
                                                    ScrollDuration="2000" ID="Rotator1" runat="server">  
                                            </telerik:RadRotator> 

 

Dim rs As SqlDataReader = clsGenerateReport.top20_ticker()

 

 

Dim dt As New DataTable

 

dt.Load(rs)

Rotator1.DataSource = dt

Rotator1.DataBind()

3 Answers, 1 is accepted

Sort by
0
Andy Green
Top achievements
Rank 1
answered on 18 Jun 2010, 01:20 PM
Hi

I'm new to this control, just picked it up this morning, so this might be obvious and not what you are looking for but ...

You need to add this to extract the data:
<ItemTemplate > 
 
             
<%#DataBinder.Eval(Container.DataItem, "Your data field here")%> 
 
 
</ItemTemplate> 

Andy
0
appdev
Top achievements
Rank 1
answered on 18 Jun 2010, 02:16 PM
yes but this means that you still manually adding data on the aspx page. what i want is to add it programmatically in the server which is aspx.vb page.
0
Fiko
Telerik team
answered on 22 Jun 2010, 12:47 PM
Hi Duy,

The solution is explained in details in this blog post. I have already gave you the link in my answer to your support ticket.

Regards,
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
appdev
Top achievements
Rank 1
Answers by
Andy Green
Top achievements
Rank 1
appdev
Top achievements
Rank 1
Fiko
Telerik team
Share this question
or