Class Control
Inheritance
System.Object
Control
Implements
System.Web.IHtmlString
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.EJ.dll
Syntax
public abstract class Control : EssentialJavaScript, IHtmlString
Constructors
Control()
Declaration
Fields
ServerProperties
Defines a server properties.
Declaration
public Dictionary<string, object> ServerProperties
Field Value
Type |
Description |
System.Collections.Generic.Dictionary<System.String, System.Object> |
|
Properties
ClientID
ASP.NET webform alone to generate control id based on its contentholder container
Declaration
public string ClientID { get; set; }
Property Value
Type |
Description |
System.String |
|
ControlType
Identifies the type of control.
Declaration
public Type ControlType { get; set; }
Property Value
Type |
Description |
System.Type |
|
Data
Holds the serialized value of the dataSource used by control.
Declaration
protected string Data { get; set; }
Property Value
Type |
Description |
System.String |
|
ID
Set the DOM control element ID
Declaration
public string ID { get; set; }
Property Value
Type |
Description |
System.String |
|
Model
Holds the control properties
Declaration
protected abstract object Model { get; }
Property Value
Type |
Description |
System.Object |
|
Output
TextWriter instance which is used to write the control string onto the page.
Declaration
public TextWriter Output { get; set; }
Property Value
Type |
Description |
System.IO.TextWriter |
|
Parent
Gets the logical parent element of this element.
Declaration
public Control Parent { get; set; }
Property Value
Type |
Description |
System.Web.UI.Control |
|
PluginName
Gets the plugin name of the control
Declaration
public abstract string PluginName { get; }
Property Value
Type |
Description |
System.String |
|
ServerEvents
Trigger the server events in ASP.NET web forms
Declaration
public List<string> ServerEvents { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.List<System.String> |
|
TagName
Gets or sets the name of the tag.
Declaration
public virtual string TagName { get; }
Property Value
Type |
Description |
System.String |
|
UniqueID
Gets the unique identifier for the server control.
Declaration
public string UniqueID { get; set; }
Property Value
Type |
Description |
System.String |
|
UnobtrusiveData
Declaration
protected IDictionary<string, object> UnobtrusiveData { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.IDictionary<System.String, System.Object> |
|
Methods
BuildScriptContent(String)
Declaration
protected virtual string BuildScriptContent(string jsonContent)
Parameters
Type |
Name |
Description |
System.String |
jsonContent |
|
Returns
Type |
Description |
System.String |
|
CreateContainer(String)
Declaration
public virtual HtmlString CreateContainer(string controlId)
Parameters
Type |
Name |
Description |
System.String |
controlId |
|
Returns
Type |
Description |
System.Web.HtmlString |
|
CreateDataVariable(IDictionary<String, Object>)
Creates the unobtrusive data script.
Declaration
protected string CreateDataVariable(IDictionary<string, object> input)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IDictionary<System.String, System.Object> |
input |
The input object.
|
Returns
Type |
Description |
System.String |
Returns Generated script string
|
CreateDataVariable(Object, String, Object)
Declaration
protected string CreateDataVariable(object value, string queryValue, object propertyValue)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
System.String |
queryValue |
|
System.Object |
propertyValue |
|
Returns
Type |
Description |
System.String |
|
CreateUnObtrusiveContainer(String)
Declaration
public virtual HtmlString CreateUnObtrusiveContainer(string controlId)
Parameters
Type |
Name |
Description |
System.String |
controlId |
|
Returns
Type |
Description |
System.Web.HtmlString |
|
CreateUnObtrusiveDataAttributes(Object, String, String)
Declaration
protected string CreateUnObtrusiveDataAttributes(object inputObject, string id, string argPluginString)
Parameters
Type |
Name |
Description |
System.Object |
inputObject |
|
System.String |
id |
|
System.String |
argPluginString |
|
Returns
Type |
Description |
System.String |
|
CreateUnObtrusiveDataAttributesFor(Object, String, String)
Declaration
public Dictionary<string, object> CreateUnObtrusiveDataAttributesFor(object inputObject, string id, string argPluginString)
Parameters
Type |
Name |
Description |
System.Object |
inputObject |
|
System.String |
id |
|
System.String |
argPluginString |
|
Returns
Type |
Description |
System.Collections.Generic.Dictionary<System.String, System.Object> |
|
CreateUnObtrusiveDataDictionary(Object, String, String)
Creates the un obtrusive data dictionary.
Declaration
protected Dictionary<string, object> CreateUnObtrusiveDataDictionary(object inputObject, string id, string argPluginString)
Parameters
Type |
Name |
Description |
System.Object |
inputObject |
The input object.
|
System.String |
id |
The identifier.
|
System.String |
argPluginString |
The argument plugin string.
|
Returns
Type |
Description |
System.Collections.Generic.Dictionary<System.String, System.Object> |
|
GetDependentControl()
Declaration
protected virtual List<string> GetDependentControl()
Returns
Type |
Description |
System.Collections.Generic.List<System.String> |
|
GetTag(String)
Declaration
public string GetTag(string tag)
Parameters
Type |
Name |
Description |
System.String |
tag |
|
Returns
Type |
Description |
System.String |
|
InitializeScript()
Declaration
public void InitializeScript()
Raw()
Declaration
Returns
Type |
Description |
System.Web.HtmlString |
|
RemoveScriptContent(String)
Declaration
protected string RemoveScriptContent(string jsonContent)
Parameters
Type |
Name |
Description |
System.String |
jsonContent |
|
Returns
Type |
Description |
System.String |
|
Render()
Declaration
public virtual void Render()
RenderControl(String)
Declaration
public virtual void RenderControl(string controlId)
Parameters
Type |
Name |
Description |
System.String |
controlId |
|
RenderJson()
Declaration
protected string RenderJson()
Returns
Type |
Description |
System.String |
|
Serialize(Object)
Declaration
public string Serialize(object model)
Parameters
Type |
Name |
Description |
System.Object |
model |
|
Returns
Type |
Description |
System.String |
|
SetHtmlAttributes(HtmlTag, IDictionary<String, Object>)
Declaration
protected HtmlTag SetHtmlAttributes(HtmlTag tagname, IDictionary<string, object> htmlAttributes)
Parameters
Type |
Name |
Description |
HtmlTag |
tagname |
|
System.Collections.Generic.IDictionary<System.String, System.Object> |
htmlAttributes |
|
Returns
SetHtmlAttributes(Object)
Declaration
protected string SetHtmlAttributes(object attr)
Parameters
Type |
Name |
Description |
System.Object |
attr |
|
Returns
Type |
Description |
System.String |
|
SetHtmlAttributes(StringBuilder, IDictionary<String, Object>)
Declaration
protected StringBuilder SetHtmlAttributes(StringBuilder tagname, IDictionary<string, object> htmlAttributes)
Parameters
Type |
Name |
Description |
System.Text.StringBuilder |
tagname |
|
System.Collections.Generic.IDictionary<System.String, System.Object> |
htmlAttributes |
|
Returns
Type |
Description |
System.Text.StringBuilder |
|
ToHtmlString()
Declaration
public string ToHtmlString()
Returns
Type |
Description |
System.String |
|
Implements
System.Web.IHtmlString