GanttCommandColumn.NewButton Property
Gets the New button's settings.
Namespace: DevExpress.Web.ASPxGantt
Assembly: DevExpress.Web.ASPxGantt.v20.2.dll
Declaration
public TreeListCommandColumnButton NewButton { get; }
Public ReadOnly Property NewButton As TreeListCommandColumnButton
Property Value
Type | Description |
---|---|
TreeListCommandColumnButton | The button settings. |
Available values:
Name | Description |
---|---|
Visible | Gets or sets whether the button is displayed within command column cells. |
Text | Gets or sets the button's text. |
Styles | Provides access to the style settings that control the appearance of command buttons. |
Image | Gets the settings of an image displayed within the button. |
Type | For internal use only. |
ToString() | Returns a string that represents the current object. |
Assign(PropertiesBase) | Copies the public properties from the specified object to the current one. |
TreeListCommandColumnButton(IPropertiesOwner, TreeListCommandColumnButtonType) | Initializes a new instance of the TreeListCommandColumnButton class with specified settings. |
Remarks
The New button deletes the current task. Use the NewButton property to specify the button's image, caption and visibility.
<dx:ASPxGantt ID="Gantt" runat="server" Height="700" ... >
// ...
<SettingsTasksList Width="45%">
<Columns>
<dx:GanttCommandColumn Width="90">
<NewButton Visible="true"/>
</dx:GanttCommandColumn>
//...
</Columns>
</SettingsTasksList>
</dx:ASPxGantt>