RadiantQ jQuery Gantt Package
Task specific ReadOnly settings
Previous Topic  Next Topic 

Task specific ReadOnly settings


You can also make certain tasks read-only by binding to some property values of the task. For example, you can make the tasks that are 100% complete, read-only as follows:


var $gantt_container = $('#gantt_container');

$gantt_container.GanttControl({

    ProjectStartDate: anchorTime,

    DataSource: source,

    // Don't allow dependency connections or time-editing of tasks that are already 100% completed.

    IsTaskReadOnlyBinding: {

        Property: "activity.ProgressPercent", Converter: function (value, src, target) {

            return (value > 99);

        }

    },

});









� RadiantQ 2022. All Rights Reserved.