Multirow: How to get filtered column when changing/changed?

Posted by: matt_baker on 22 April 2021, 12:09 pm EST

    • Post Options:
    • Link

    Posted 22 April 2021, 12:09 pm EST

    I have a multi row grid, using the new VueJS templates for defining the groupings (see ```

    https://stackblitz.com/edit/wijmo-vue-flexgrid-vpav3u?file=index.js

    
    In FlexGrid, reading ```
    e.col
    ``` on ```
    filterChanging(s,e)
    ``` gave me the column index, which I can then use to look up the Column object.
    
    However in multi row, ```
    e.col
    ``` is not unique across all groups. How do I use the event args on ```
    filterChanging
    ``` and ```
    filterChanged
    ``` to get to the column that was just filtered?
  • Posted 23 April 2021, 8:40 am EST

    Hi Matt,

    The event data and column layout are different for Multirow. To get the column in the event, first you will need to handle the mousedown event on the Multirow and save the row and col if the clicked panel is column headers of Multirow. Then in the filterChanged event, use the getBindingColumn of the Multirow to get the binding of the column.

    https://stackblitz.com/edit/wijmo-vue-flexgrid-usa3jr

    Regards,

    Ashwin

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels