ASPxClientGanttTaskMovingEventArgs.values Property
In This Article
Specifies the task values.
#Declaration
TypeScript
values: any
#Property Value
Type | Description |
---|---|
any | The values. |
#Remarks
Web Forms:
<dx:ASPxGantt ID="Gantt" >
<ClientSideEvents TaskMoving="function(s, e) {
//...
var limit = new Date("2020-12-17T03:24:00");
if(e.newValues["StartDate"] > limit)
e.newValues["StartDate"] = limit;
console.log("Start date was changed from " + e.values["StartDate"] + " to " + e.newValues["StartDate"]);
}" />
</dx:ASPxGantt>
MVC:
@Html.DevExpress().Gantt(settings => {
settings.Name = "gantt";
settings.ClientSideEvents.TaskMoving = "function (s, e) {
//...
var limit = new Date("2020-12-17T03:24:00");
if(e.newValues["StartDate"] > limit)
e.newValues["StartDate"] = limit;
console.log("Start date was changed from " + e.values["StartDate"] + " to " + e.newValues["StartDate"]);
}";
...
}).Bind(
GanttDataProvider.Tasks, GanttDataProvider.Dependencies,
GanttDataProvider.Resources, GanttDataProvider.ResourceAssignments
).GetHtml()
See Also