RadSplitButton
RadSplitButton control provides the features, that ASP.NET: Button controls has.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
[TelerikToolboxCategory("Navigation")]
[ToolboxBitmap(typeof(RadSplitButton), "Toolbox.Icons.SplitButton.png")]
[RequiredScript(typeof(jQueryPlugins))]
[RequiredScript(typeof(PostBackButtonBase))]
[ClientScriptResource("Telerik.Web.UI.RadSplitButton", "Telerik.Web.UI.Button.RadButtonScripts.js")]
[EmbeddedSkin("Button")]
[EmbeddedSkin("Button", "Default")]
[RequiredCss("Telerik.Web.UI.Skins.Common.fonticons.css", RenderMode.Classic, typeof(RadButton))]
[RequiredCss("Telerik.Web.UI.Skins.Common.fonticons.css", RenderMode.Lightweight, typeof(RadButton))]
public class RadSplitButton : PostBackButtonBase, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IScriptControl, IControlResolver, IPostBackDataHandler, ISkinnableControl, IControl, IButtonControl, IPostBackEventHandler, INamingContainer
Inheritance: objectControlWebControlRadWebControlRadButtonBasePostBackButtonBaseRadSplitButton...
Implements:
Inherited Members
Constructors
public RadSplitButton()
Properties
Gets the object that controls the built-in confirmation dialog properties.
[PersistenceMode(PersistenceMode.InnerProperty)]
public RadButtonConfirmSettings ConfirmSettings { get; }
Gets or sets the template for the Button control.
[TemplateContainer(typeof(RadSplitButton))]
[PersistenceMode(PersistenceMode.InnerProperty)]
public ITemplate ContentTemplate { get; set; }
An object implementing the ITemplate interface. The default value is a null reference (Nothing in Visual Basic), which indicates that this property is not set.
Gets the RadContextMenu instance of the SplitButton control.
[Browsable(true)]
[PersistenceMode(PersistenceMode.InnerProperty)]
public virtual RadContextMenu ContextMenu { get; }
Gets or sets the value, indicating whether to render the skin CSS files during Ajax requests
public override bool EnableAjaxSkinRendering { get; set; }
Overrides:
If EnableAjaxSkinRendering is set to false you will have to register the needed control base CSS file by hand when adding/showing the control with Ajax.
When set to true enables support for WAI-ARIA
[ClientControlProperty]
[ClientPropertyName("enableAriaSupport")]
public bool EnableAriaSupport { get; set; }
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; set; }
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 script references to the embedded scripts or not.
public override bool EnableEmbeddedScripts { get; set; }
Overrides:
If EnableEmbeddedScripts is set to false you will have to register the needed Scripts files by hand.
Gets or sets the value, indicating whether to render links to the embedded skins or not.
public override bool EnableEmbeddedSkins { get; set; }
Overrides:
If EnableEmbeddedSkins is set to false you will have to register the needed CSS files by hand.
Gets the object that controls the Primary and Secondary Icon related properties.
[PersistenceMode(PersistenceMode.InnerProperty)]
public ButtonIcon Icon { get; }
Gets or sets the name of the JavaScript function that will be called when the RadButton is clicked. The event is cancelable.
[ClientControlEvent]
[ClientPropertyName("contextMenuItemClicked")]
public string OnClientContextMenuItemClicked { get; set; }
Controls wether the Text of a clicked ContextMenu item should become the button's Text.
[ClientControlProperty]
[ClientPropertyName("persistChangesFromContextMenu")]
public bool PersistChangesFromContextMenu { get; set; }
Gets/Sets the primary appearance of the button.
[ClientControlProperty]
[ClientPropertyName("primary")]
public bool Primary { get; set; }
Gets or sets the value, indicating whether to register with the ScriptManager control on the page.
public override bool RegisterWithScriptManager { get; set; }
Overrides:
If RegisterWithScriptManager is set to false the control can be rendered on the page using Web Services or normal callback requests/page methods.
Gets or sets the skin name for the control user interface.
public override string Skin { get; set; }
A string containing the skin name for the control user interface. The default is string.Empty.
Overrides:
If this property is not set, the control will render using the skin named "Default". If EnableEmbeddedSkins is set to false, the control will not render skin.
Methods
protected override void CreateChildControls()
Overrides:
protected override void DescribeComponent(IScriptDescriptor descriptor)
Overrides:
public virtual IEnumerable<JavaScriptConverter> GetJsConverters()
protected virtual void OnChildrenCreated()
protected override void RenderContents(HtmlTextWriter writer)
Overrides:
Events
Occurs after all child controls of the SplitButton control have been created. You can customize the control there, and add additional child controls.
public event EventHandler ChildrenCreated