the data source that I'm using is SqlDataSource .. and I can access the items in the Rotator ... but I have
a problem access the RadTickerItem inside it which is inside the RadTicker ..
so .. any help I will be grateful.
3 Answers, 1 is accepted
0
Niko
Telerik team
answered on 13 May 2011, 05:00 PM
Hi Mahmoud,
Do you need to access the RadTickerItem on the server-side (code-behind) or on the client-side? Could you, please, specify the scenario you wish to accomplish so that I can pinpoint you to the correct sources of information?
I want to access the RadTickerItem in server side (Code-behind) in C# .
0
Accepted
Niko
Telerik team
answered on 17 May 2011, 01:48 PM
Hi Mahmoud,
Once getting a reference to the RadTicker control, you have access to its Items collection. If you need the first item you can simply ask for the first element of the collection:
var firstItem = ticker.Items[0];
However the RadTicker does not persist its state across postbacks, therefore you cannot find the currently shown Item among all the items on the server.