RadTicker
RadTicker control
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
[TelerikToolboxCategory("Visualization")]
[ToolboxBitmap(typeof(RadTicker), "Toolbox.Icons.Ticker.png")]
[ClientScriptResource("Telerik.Web.UI.RadTicker", "Telerik.Web.UI.Rotator.RadTicker.js")]
public class RadTicker : RadDataBoundControl, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IScriptControl, IControlResolver, IPostBackDataHandler, ISkinnableControl, IControl, IFeatureGroup, INamingContainer
Inheritance: objectControlWebControlBaseDataBoundControlDataBoundControlRadDataBoundControlRadTicker...
Implements:
Inherited Members
Constructors
public RadTicker()
Properties
public bool AppendDataBoundItems { get; set; }
Specifies whether RadTicker will begin ticking the next tickerline (if any) after it has finished ticking the current one.
[ClientControlProperty]
public bool AutoAdvance { get; set; }
Default: True
If you set the AutoAdvance property to false, then you will have to use a client API Call ticker_id.tickNextLine()
Gets or sets a value indicating whether a postback to the server automatically occurs when the user interacts with the control.
public virtual bool AutoPostBack { get; set; }
The default value is false.
Setting this property to true will make Telerik RadTicker postback to the server on item click.
Specifies whether the ticker begins ticking automatically.
[ClientControlProperty]
public bool AutoStart { get; set; }
Default: False
You should leave this set to false if you are using the ticker within a RadTicker If you use the ticker independently and leave this setting to false you should use the client API call ticker_id.startTicker() to start it.
public string DataNavigateUrlField { get; set; }
Gets or sets the field of the data source that provides the value of the ticker lines.
public string DataTextField { get; set; }
A string that specifies the field of the data source that provides the value of the ticker lines. The default value is an empty string.
Use the DataTextField property to specify the field of the data source (in most cases the name of the database column) which provides the values for the Text property of databound ticker items. The DataTextField property is taken into account only during data binding. If the DataTextField property is not set and your datasource is not a list of strings, the RadTicker control will throw an exception.
Gets or sets the value, indicating whether to render the link to the embedded base stylesheet of the control or not.
public override bool EnableEmbeddedBaseStylesheet { get; }
Overrides:
If EnableEmbeddedBaseStylesheet is set to false you will have to register the needed control base CSS file by hand.
Gets or sets the value, indicating whether to render links to the embedded skins or not.
public override bool EnableEmbeddedSkins { get; }
Overrides:
If EnableEmbeddedSkins is set to false you will have to register the needed CSS files by hand.
The collection that holds all RadTickerItem objects.
[PersistenceMode(PersistenceMode.InnerProperty)]
[Browsable(false)]
public RadTickerItemCollection Items { get; }
Specifies in milliseconds the pause RadTicker makes before starting to tick the next line (if AutoAdvance=True).
[ClientControlProperty]
public int LineDuration { get; set; }
Default: 2000ms
Specifies whether RadTicker will repeat the first tickerline after displaying the last one.
[ClientControlProperty]
public bool Loop { get; set; }
Default: False
If you set this property to true RadTicker will never finish ticking. This may have possible implications when having more than one RadTicker instance in a RadRotator. This way RadRotator works is that when the first ticker on a frame has finished ticking it will start ticking the next ticker on the frame. If a RadTicker instance is ticking (has Loop=true) it will never finish and the next ticker on the frame will not get started.
[Themeable(false)]
public string PostBackUrl { get; set; }
Methods
Binds the ticker to a IEnumerable data source
public void BindToEnumerableData(IEnumerable dataSource)
IEnumerable data source
protected override void DescribeClientEvents(IScriptDescriptor descriptor)
Overrides:
protected override void DescribeClientProperties(IScriptDescriptor descriptor)
Overrides:
protected override void DescribeComponent(IScriptDescriptor descriptor)
Overrides:
protected override void PerformDataBinding(IEnumerable data)
Overrides:
protected void PrepareForDataBinding()
protected override void RenderContents(HtmlTextWriter writer)
Overrides:
protected override void TrackViewState()
Overrides: