TreeListColumnBuilder<T>.AllowHiding(JS) Method
In This Article
Specifies whether a user can hide the column using the column chooser at runtime. Applies only if columnChooser.enabled is true. Mirrors the client-side allowHiding option.
Namespace: DevExtreme.AspNet.Mvc.Builders
Assembly: DevExtreme.AspNet.Core.dll
#Declaration
C#
public TreeListColumnBuilder<T> AllowHiding(
JS value
)
#Parameters
Name | Type | Description |
---|---|---|
value | JS | A Java |
#Returns
Type | Description |
---|---|
Tree |
A reference to this instance after the method is called. |
#Remarks
Use the new JS() expression to set the option’s value.
<script>
var myValue = ...;
</script>
@(Html.DevExtreme().Gantt()
.Columns(columns => {
columns.Add().AllowHiding(new JS("myValue"));
})
)
See Also