Premium support for our pure JavaScript UI components


Post by rahulranjan »

Hi
1. In ID column i want of predecessor and successor i want to show Different ID . There is one field ID for each task i want to show that field . Only for view Purpose
2. How to hide ID column in Tab

3. I am not able to see all the task in Successor and predecessor drop down. Steps to produce
1. Run the application
2. Expand only WBS:W1 don't expand other Parents task
3. Select any task inside it click on Edit
4. Go to Predecessor or Successor Tab . Select drop down you will be able to see only few task the task inside WBS:W4 will not come .
Attachments
advanced.rar
(1.83 MiB) Downloaded 84 times
SendDepen.png
SendDepen.png (56.69 KiB) Viewed 1141 times

Post by pmiklashevich »

Hello,
1. In ID column i want of predecessor and successor i want to show Different ID . There is one field ID for each task i want to show that field . Only for view Purpose
2. How to hide ID column in Tab
Tabs are internal classes. And providing grid configuration there is not supported out of the box. I've created a feature request for that: https://github.com/bryntum/support/issues/468

As a workaround you can manipulate the columns dynamically in beforeTaskEditShow handler:
    listeners : {
        beforeTaskEditShow({ editor }) {
            if (!editor.initialized) {
                editor.initialized = true;

                const
                    successorsGrid = editor.widgetMap.successorstab.grid,
                    predecessorsGrid = editor.widgetMap.predecessorstab.grid;

                successorsGrid.columns.first.remove();
                successorsGrid.columns.insert(0, {
                    text       : 'Task ID',
                    flex       : 1,
                    editor     : false,
                    htmlEncode : false,
                    renderer({ record : dependency }) {
                        return dependency.fromEvent.id;
                    }
                });

                predecessorsGrid.columns.first.remove();
                predecessorsGrid.columns.insert(0, {
                    text       : 'Task ID',
                    flex       : 1,
                    editor     : false,
                    htmlEncode : false,
                    renderer({ record : dependency }) {
                        return dependency.toEvent.id;
                    }
                });
            }
        }
    },
3. I am not able to see all the task in Successor and predecessor drop down.
Original report is here: viewtopic.php?f=51&t=12946
We're planning to get this ticket fixed in v2.1.2. Please stay tuned!
https://github.com/bryntum/support/issues/123

Best regards,
Pavel

Pavlo Miklashevych
Sr. Frontend Developer


Post by rahulranjan »

Thanks pmiklashevich
One can i hide ID field and add new field in Successor and Predecessor grid in Task Editor.

Post by rahulranjan »

Hi One More how to filter the Drop Down Task which shows While adding in Successor Grid . few task i don't want show in list

Post by pmiklashevich »

Please apply filter to editor.widgetMap.successorstab.taskCombo.store
https://www.bryntum.com/docs/gantt/#Core/data/mixin/StoreFilter

Pavlo Miklashevych
Sr. Frontend Developer


Post by rahulranjan »

Hi i applying this but it does not work
editor.widgetMap.successorstab.taskCombo.store.filters(r => r.type === 'activity'); 

Post by sergey.maltsev »


Post Reply