Our state of the art Gantt chart


Post by awendt »

Hello, we are trying to extend the filtering capabilities of the name column so that our users can select multiple names. I was playing with the basic example to see if we could do this. I added the following code:

    
features : { filter : true }, columns : [ { type : 'name', width : 250, filterable : { filterField: { type : 'combo', multiSelect : true, displayField : 'name', valueField : 'name', store: project.taskStore } } } ],

However, after I select a single name from the dropdown in the filter if I try to select a second name I can't, the only name in the dropdown anymore is the one that I've already selected. What am I missing?

Screen Shot 2022-01-24 at 1.48.45 PM.png
Screen Shot 2022-01-24 at 1.48.45 PM.png (33.54 KiB) Viewed 362 times

Post by alex.l »

Hi awendt,

Because you used the same store for your combo list and for target store to filter. Looks like after you selected a value in your filter combo, it applies filter to taskStore (that is actually filterBar feature for) so combo uses same store and that store is filtered too.

Try to chain that store:

store: project.taskStore.chain()

https://bryntum.com/docs/gantt/api/Core/data/mixin/StoreChained#function-chain

All the best,
Alex


Post by awendt »

Perfect, thank you!


Post Reply