I'm using the Advanced Gantt Example.
I don't understand how make a filter on the ShowInTimeLine column
app/view/MainViewportController.js
This code works correctly :
This code doesn't work properly :
It seems that the TaskStore doesn't accept bolean value as entry but only text value.
A second question is how to make a FilterColumn like the example "app\filed\Filter.js". I would like to display a list of possible value "True or False".
I don't understand how make a filter on the ShowInTimeLine column
app/view/MainViewportController.js
This code works correctly :
onFilterTasks : function () {
this.getGantt().taskStore.filterTreeBy(function (task) {
return task.getDuration() >= 10;
});
},
onFilterTasks : function () {
this.getGantt().taskStore.filterTreeBy(function (task) {
return task.getShowInTimeline();
});
},
A second question is how to make a FilterColumn like the example "app\filed\Filter.js". I would like to display a list of possible value "True or False".
I'm using Gantt 4.1.3, maybe there is an issue on this version ?
For the 2nd question :
I would like to change the "input field" by several option :
- a special Date filter like EXCEL to manage Date column (startdate, enddate, contraintdate). On excel when you have a date column you can apply a filter that allow you to click/unclick by year/month/day
- a list with yes/no to manage checkbox column (showtimeline)
For the 2nd question :
I would like to change the "input field" by several option :
- a special Date filter like EXCEL to manage Date column (startdate, enddate, contraintdate). On excel when you have a date column you can apply a filter that allow you to click/unclick by year/month/day
- a list with yes/no to manage checkbox column (showtimeline)
I don't know why but now the function works !
filters columns.
I have however a two missing tasks that should appears :
The complete list : Filter by ShowInTimeLine, the Task "Commande matériel" is missing I joined the json data.
return task.getShowInTimeline();
I have however a two missing tasks that should appears :
The complete list : Filter by ShowInTimeLine, the Task "Commande matériel" is missing I joined the json data.
- Attachments
-
- json_data.txt
- (74.45 KiB) Downloaded 206 times
Ext.first('ganttpanel').taskStore.filterTreeBy({
filter : function (task) {
return task.getShowInTimeline();
},
checkParents : true
});
Pavlo Miklashevych
Sr. Frontend Developer