Class SplitButton
Represents the SplitButton UI element.
Inheritance
System.Object
SplitButton
Implements
System.Web.UI.INamingContainer
System.Web.UI.IPostBackEventHandler
System.Web.UI.IPostBackDataHandler
System.Web.UI.IUrlResolutionService
Assembly: Syncfusion.EJ.Web.dll
public class SplitButton : CommonControl, INamingContainer, IPostBackEventHandler, IPostBackDataHandler, IUrlResolutionService
Constructors
Declaration
Properties
Gets or sets a value indicating the arrow position of the split or dropdown button.
Declaration
public ArrowPosition ArrowPosition { get; set; }
Property Value
Gets or sets a value indicating the mode of the button is split or dropdown button.
Declaration
public ButtonMode ButtonMode { get; set; }
Property Value
Gets or sets a value indicating this event gets fired before menu of the split button control is opened.
Declaration
public string ClientSideOnBeforeOpen { get; set; }
Property Value
Type |
Description |
System.String |
|
Gets or sets a value indicating this event gets fired when split button clicked successfully.
Declaration
public string ClientSideOnClick { get; set; }
Property Value
Type |
Description |
System.String |
|
Gets or sets a value indicating this event gets fired when the list content of split button control is closed.
Declaration
public string ClientSideOnClose { get; set; }
Property Value
Type |
Description |
System.String |
|
Gets or sets a value indicating this event gets fired after split button control is created.
Declaration
public string ClientSideOnCreate { get; set; }
Property Value
Type |
Description |
System.String |
|
Gets or sets a value indicating this event gets fired when the split button is destroyed successfully.
Declaration
public string ClientSideOnDestroy { get; set; }
Property Value
Type |
Description |
System.String |
|
Gets or sets a value indicating this event gets fired when a menu item is hovered out successfully.
Declaration
public string ClientSideOnItemMouseOut { get; set; }
Property Value
Type |
Description |
System.String |
|
Gets or sets a value indicating this event gets fired when a menu item is hovered in successfully.
Declaration
public string ClientSideOnItemMouseOver { get; set; }
Property Value
Type |
Description |
System.String |
|
Gets or sets a value indicating this event gets fired when a menu item is clicked successfully.
Declaration
public string ClientSideOnItemSelected { get; set; }
Property Value
Type |
Description |
System.String |
|
Gets or sets a value indicating this event gets fired when list content of split button control is opened.
Declaration
public string ClientSideOnOpen { get; set; }
Property Value
Type |
Description |
System.String |
|
ContentType
Gets or sets the content type of the split button. Button can have image only, text only, image text image, text and image or image both as content type.
Declaration
public ContentType ContentType { get; set; }
Property Value
Gets or sets the root CSS class to split button for theme customization.
Declaration
public string CssClass { get; set; }
Property Value
Type |
Description |
System.String |
|
Gets or sets a value indicating whether the control can respond to user interaction.
Declaration
public bool Enabled { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Gets or sets a value indicating whether control's elements supports to align in right to left direction.
Declaration
public bool EnableRTL { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Gets or sets a value indicating the height of the split button.
Declaration
public string Height { get; set; }
Property Value
Type |
Description |
System.String |
|
Gets or sets a value indicating whether image position is left or right. This property is applicable for the content type 'text and image' only.
Declaration
public ImagePosition ImagePosition { get; set; }
Property Value
Declaration
public List<SplitItem> Items { get; }
Property Value
Type |
Description |
System.Collections.Generic.List<SplitItem> |
|
Gets or sets the split button model object of the split button properties.
Declaration
public SplitButtonProperties Model { get; set; }
Property Value
Gets or sets the popup position for split button.
Declaration
public string PopupPosition { get; set; }
Property Value
Type |
Description |
System.String |
|
Gets or sets the primary icon for split button. This is applicable for the content types image only, image text image, text and image and image both.
Declaration
public string PrefixIcon { get; set; }
Property Value
Type |
Description |
System.String |
|
Gets or sets a value indicating whether split button with rounded corners or not.
Declaration
public bool ShowRoundedCorner { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Gets or sets the size of the split button.
Declaration
public ButtonSize Size { get; set; }
Property Value
Gets or sets the secondary icon for split button. This is applicable for the content types imagetextimage and imageboth.
Declaration
public string SuffixIcon { get; set; }
Property Value
Type |
Description |
System.String |
|
Gets or sets an id od class value indicating list of content items of the split button.
Declaration
public string Target { get; set; }
Property Value
Type |
Description |
System.String |
|
Gets or sets an id value indicating list of content items of the split button.
Declaration
public string TargetID { get; set; }
Property Value
Type |
Description |
System.String |
|
Text
Gets or sets the text content associated with split button.
Declaration
public string Text { get; set; }
Property Value
Type |
Description |
System.String |
|
Gets or sets a value indicating the width of the split button.
Declaration
public string Width { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
Specifies the dependent scripts.
Declaration
public List<string> DependentScripts()
Returns
Type |
Description |
System.Collections.Generic.List<System.String> |
|
Specifies the the dependent files.
Declaration
public override List<string> GetDependentFiles()
Returns
Type |
Description |
System.Collections.Generic.List<System.String> |
|
Overrides
Restores view-state information from a previous page request.
Declaration
protected override void LoadViewState(object state)
Parameters
Type |
Name |
Description |
System.Object |
state |
|
Overrides
Modifying server controls before sending them to the client.
Declaration
protected override void OnPreRender(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
PostBackEventHandler(String, Dictionary<String, Object>)
Specifies the handler for server side events.
Declaration
public override void PostBackEventHandler(string EventName, Dictionary<string, object> args)
Parameters
Type |
Name |
Description |
System.String |
EventName |
|
System.Collections.Generic.Dictionary<System.String, System.Object> |
args |
|
Overrides
Renders the split button instance.
Declaration
Returns
Type |
Description |
System.String |
|
Render(HtmlTextWriter)
Declaration
protected override void Render(HtmlTextWriter writer)
Parameters
Type |
Name |
Description |
System.Web.UI.HtmlTextWriter |
writer |
|
Overrides
Updates the server model with client model.
Declaration
public override void UpdateServerModel(Dictionary<string, object> ClientModel)
Parameters
Type |
Name |
Description |
System.Collections.Generic.Dictionary<System.String, System.Object> |
ClientModel |
|
Overrides
Events
Declaration
public event SplitButton.SplitButtonEventHandler Click
Event Type
Specifies the handler for server side OnItemSelected event.
Declaration
public event SplitButton.SplitButtonSelectEventHandler ItemSelect
Event Type
Implements
System.Web.UI.INamingContainer
System.Web.UI.IPostBackEventHandler
System.Web.UI.IPostBackDataHandler
System.Web.UI.IUrlResolutionService