|
<script type="text/javascript">
queryTaskbarInfo: function (args) {
if (args.data.item.Progress == 100) {
$(args.taskbar).find(".e-chartcell").find(".e-childContainer").find(".e-gantt-childtaskbar").css("display", "none")
$(args.taskbar).find(".e-chartcell").find(".e-tasknameContainer").find(".e-taskbarname").css("display", "none")
}
},
</script> |
|
queryTaskbarInfo: function (args) {
var taskbarElement = args.taskbar;
if (args.data.eResourceTaskType == "resourceChildTask") {
var index = args.data.parentItem.eResourceChildTasks.indexOf(args.data);
taskbarElement = $(taskbarElement).find(".e-childContainer")[index];
if (args.data.taskId % 2 == 0) {
$(taskbarElement).css("display", "none");
}
}
}, |
|
<style>
.customcolor {
background: transparent;
}
</style>
<script type="text/javascript">
create: function () {
$("#ganttViewTablebodyejGanttChartresourceGantt").find(".e-chartcell").find(".e-rangecontainer").find(".e-rg-rangdiv").addClass("customcolor");
},
</script> |
|
<button id="check">
show/hide
</button>
<script type="text/javascript">
$("#resourceGantt").ejGantt({
dataSource: ej.DataManager(resourceGanttData),
query: ej.Query().where("hide", "equal", false, false),
//..
});
$("#check").click(function() {
resourceGanttData[0].hide = true;
resourceGanttData[1].hide = true;
resourceGanttData[3].hide = false;
resourceGanttData[4].hide = false;
$("#resourceGantt").ejGantt("model.dataSource",ej.DataManager(resourceGanttData)); // Dynamically updating the data source
});
</script>
|