TreeViewBuilder.ID(String) Method
In This Article
Specifies the id
attribute for the control’s HTML element.
Namespace: DevExtreme.AspNet.Mvc.Builders
Assembly: DevExtreme.AspNet.Core.dll
#Declaration
C#
public TreeViewBuilder ID(
string id
)
#Parameters
Name | Type | Description |
---|---|---|
id | String | The |
#Returns
Type | Description |
---|---|
Tree |
A reference to this instance after the method is called. |
#Remarks
This method allows you to specify the id
attribute for the control’s HTML element. You can use this attribute to access the control’s JavaScript API at runtime (for example, to call methods). Refer to ID Option for more information.
@Html.DevExtreme().TreeView().ID("myTreeView")
See Also