Back to Devexpress

GanttTaskListSettings.AllowSort Property

aspnet-devexpress-dot-web-dot-aspxgantt-dot-gantttasklistsettings-b967102f.md

latest3.2 KB
Original Source

GanttTaskListSettings.AllowSort Property

Specifies whether users can sort all columns.

Namespace : DevExpress.Web.ASPxGantt

Assembly : DevExpress.Web.ASPxGantt.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(true)]
public bool AllowSort { get; set; }
vb
<DefaultValue(True)>
Public Property AllowSort As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true, to sort all columns; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

LibraryObject TypePath to AllowSort
ASP.NET MVC ExtensionsGanttSettings

.SettingsTaskList .AllowSort

| | ASP.NET Web Forms Controls | ASPxGantt |

.SettingsTaskList .AllowSort

|

Remarks

The AllowSort property allows you to allow or deny users from sorting all columns in the control.

aspx
<dx:ASPxGantt runat="server" ID="Gantt" >
    <SettingsTaskList AllowSort="False" >
        <Columns>
            ...
        </Columns>
    </SettingsTaskList>
</dx:ASPxGantt>

To control users’ ability to sort an individual control, use the AllowSort property.

aspx
<dx:ASPxGantt runat="server" ID="Gantt" >
    <SettingsTaskList Width="55%" >
        <Columns>
            <dx:GanttTimeEditColumn FieldName="FlightStart" />
            <dx:GanttTextColumn FieldName="ArriveTo" AllowSort="False" />
            ...
        </Columns>
    </SettingsTaskList>
</dx:ASPxGantt>

Examples

Online Demos

See Also

ASPxGantt - 'How To' Examples

GanttTaskListSettings Class

GanttTaskListSettings Members

DevExpress.Web.ASPxGantt Namespace