Class DropDownButtonBuilder
Inheritance
System.Object
DropDownButtonBuilder
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Syncfusion.EJ2.dll
public class DropDownButtonBuilder : ControlBuilder
Constructors
Declaration
public DropDownButtonBuilder()
Declaration
public DropDownButtonBuilder(DropDownButton model)
Parameters
Fields
Declaration
public DropDownButton model
Field Value
Properties
Declaration
public IDictionary<string, object> HtmlAttr { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.IDictionary<System.String, System.Object> |
|
Declaration
public string ID { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public override TextWriter Output { get; set; }
Property Value
Type |
Description |
System.IO.TextWriter |
|
Overrides
Methods
Triggers before closing the DropDownButton popup.
Declaration
public DropDownButtonBuilder BeforeClose(string beforeClose)
Parameters
Type |
Name |
Description |
System.String |
beforeClose |
|
Returns
Triggers while rendering each Popup item of DropDownButton.
Declaration
public DropDownButtonBuilder BeforeItemRender(string beforeItemRender)
Parameters
Type |
Name |
Description |
System.String |
beforeItemRender |
|
Returns
Triggers before opening the DropDownButton popup.
Declaration
public DropDownButtonBuilder BeforeOpen(string beforeOpen)
Parameters
Type |
Name |
Description |
System.String |
beforeOpen |
|
Returns
Triggers while closing the DropDownButton popup.
Declaration
public DropDownButtonBuilder Close(string close)
Parameters
Type |
Name |
Description |
System.String |
close |
|
Returns
Specifies the event to close the DropDownButton popup.
Declaration
public DropDownButtonBuilder CloseActionEvents(string closeActionEvents)
Parameters
Type |
Name |
Description |
System.String |
closeActionEvents |
|
Returns
Content(String)
Defines the content of the DropDownButton element that can either be a text or HTML elements.
Declaration
public DropDownButtonBuilder Content(string content)
Parameters
Type |
Name |
Description |
System.String |
content |
|
Returns
ContentTemplate(Action<Object>)
Declaration
public DropDownButtonBuilder ContentTemplate(Action<object> template)
Parameters
Type |
Name |
Description |
System.Action<System.Object> |
template |
|
Returns
ContentTemplate(Func<Object, Object>)
Declaration
public DropDownButtonBuilder ContentTemplate(Func<object, object> template)
Parameters
Type |
Name |
Description |
System.Func<System.Object, System.Object> |
template |
|
Returns
Triggers once the component rendering is completed.
Declaration
public DropDownButtonBuilder Created(string created)
Parameters
Type |
Name |
Description |
System.String |
created |
|
Returns
Specifies the popup element creation on open.
Declaration
public DropDownButtonBuilder CreatePopupOnClick(bool createPopupOnClick = true)
Parameters
Type |
Name |
Description |
System.Boolean |
createPopupOnClick |
|
Returns
Defines class/multiple classes separated by a space in the DropDownButton element. The
DropDownButton size and styles can be customized by using this.
Declaration
public DropDownButtonBuilder CssClass(string cssClass)
Parameters
Type |
Name |
Description |
System.String |
cssClass |
|
Returns
Specifies a value that indicates whether the DropDownButton is disabled
or not.
Declaration
public DropDownButtonBuilder Disabled(bool disabled = true)
Parameters
Type |
Name |
Description |
System.Boolean |
disabled |
|
Returns
Defines whether to allow the cross-scripting site or not.
Declaration
public DropDownButtonBuilder EnableHtmlSanitizer(bool enableHtmlSanitizer = true)
Parameters
Type |
Name |
Description |
System.Boolean |
enableHtmlSanitizer |
|
Returns
Enable or disable persisting component's state between page reloads.
Declaration
public DropDownButtonBuilder EnablePersistence(bool enablePersistence = true)
Parameters
Type |
Name |
Description |
System.Boolean |
enablePersistence |
|
Returns
Enable or disable rendering component in right to left direction.
Declaration
public DropDownButtonBuilder EnableRtl(bool enableRtl = true)
Parameters
Type |
Name |
Description |
System.Boolean |
enableRtl |
|
Returns
Allows additional HTML attributes such as title, name, etc., and
accepts n number of attributes in a key-value pair format.
Declaration
public DropDownButtonBuilder HtmlAttributes(object htmlAttributes)
Parameters
Type |
Name |
Description |
System.Object |
htmlAttributes |
|
Returns
Defines class/multiple classes separated by a space for the DropDownButton that is used to
include an icon. DropDownButton can also include font icon and sprite image.
Declaration
public DropDownButtonBuilder IconCss(string iconCss)
Parameters
Type |
Name |
Description |
System.String |
iconCss |
|
Returns
Positions the icon before/top of the text content in the DropDownButton. The possible values are:
Left: The icon will be positioned to the left of the text content.
Top: The icon will be positioned to the top of the text content.
Declaration
public DropDownButtonBuilder IconPosition(SplitButtonIconPosition iconPosition)
Parameters
Returns
Specifies action items with its properties which will be rendered as DropDownButton popup.
Declaration
public DropDownButtonBuilder Items(object items)
Parameters
Type |
Name |
Description |
System.Object |
items |
|
Returns
Overrides the global culture and localization value for this component. Default global culture is 'en-US'.
Declaration
public DropDownButtonBuilder Locale(string locale)
Parameters
Type |
Name |
Description |
System.String |
locale |
|
Returns
Triggers while opening the DropDownButton popup.
Declaration
public DropDownButtonBuilder Open(string open)
Parameters
Type |
Name |
Description |
System.String |
open |
|
Returns
Declaration
public HtmlString Render()
Returns
Type |
Description |
System.Web.HtmlString |
|
Triggers while selecting action item in DropDownButton popup.
Declaration
public DropDownButtonBuilder Select(string select)
Parameters
Type |
Name |
Description |
System.String |
select |
|
Returns
Allows to specify the DropDownButton popup item element.
Declaration
public DropDownButtonBuilder Target(string target)
Parameters
Type |
Name |
Description |
System.String |
target |
|
Returns