Premium support for our pure JavaScript UI components


Post by chrisb »

Hey guys,

I have the below config for my task editor, however, the search seems to still be startsWith rather than includes, am I using this properly?


predecessorsTab: {
          weight: 400,
          items: {
            grid: {
              columns: {
                data: {
                  name: {
                    editor: {
                      filterOperator: '*'
                    }
                  }
                }
              }
            }
          }
        },
        successorsTab: {
          weight: 500,
          items: {
            grid: {
              columns: {
                data: {
                  name: {
                    editor: {
                      filterOperator: '*'
                    }
                  }
                }
              }
            }
          }
        },

Thanks,

Chris


Post by saki »

First of all, it's strange that the search is startWith I've tested it on successorsTab and it works out of the box:

Screen Shot 2021-07-21 at 09.55.22.png
Screen Shot 2021-07-21 at 09.55.22.png (109.9 KiB) Viewed 512 times

Nevertheless, the documentation is correct so the following snipped works for me.

    features : {
        taskEdit : {
            items : {
                predecessorsTab : {
                    items : {
                        grid : {
                            columns : {
                                // Columns are held in a store, thus it uses `data`
                                // instead of `items`
                                data : {
                                    name : {
                                        // Change header text for the name column
                                        text   : 'Linked to',
                                        editor : {
                                            filterOperator : '*'
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },

The only visible change is change of the column headers because the editor behaved properly at the start, but we can reach the column configuration this way so we can also (re)configure the column editor.


Post by chrisb »

Thanks for the response - what about searching by WBS? It's displayed in the title in the dropdown, but does not seem searchable.

Thanks


Post by alex.l »

Hi chrisb,

I've opened a ticket to fix this: https://github.com/bryntum/support/issues/3229
But you can find a temporary solution in this thread viewtopic.php?f=52&t=18038&p=89296#p89296
Shortly, you can specify https://www.bryntum.com/docs/gantt/#Core/widget/Combo%23config-primaryFilter

All the best,
Alex

All the best,
Alex


Post Reply