FlexGrid and DataMap

Posted by: eonae.white on 29 June 2019, 11:13 am EST

  • Posted 29 June 2019, 11:13 am EST

    Hello, dear developers!

    I have a FlexGrid where with 3 columns: name, role and date. But in my data source, I have ID instead of name. So i set dataMap for this column.

    My DataMap (id, name) comes from table like this:

    | id | Name | Role | Status |

    | 0 | Jack | Waiter | active |

    | 1 | Jill | Waiter | fired |

    | 2 | Daniel | Manager | active |

    And the grid itself is sort of journal:

    | Name | Role | Date |

    | Jack | Waiter | sep.1 |

    | Jill | Waiter | sep.2 |

    | Jack | Waiter | sep. 3 |

    ect.

    The problem is that i want only active people to be in dropDown…

    Hope my question is clear… Can you please suggest a solution?

  • Posted 1 July 2019, 2:26 am EST

    Hello,

    You may use the CollectionView’s filter property to show filter out the data from the DataMap accordingly. The CollectionView object is exposed by the collectionView property of DataMap class. Please refer to the sample below:

    https://stackblitz.com/edit/js-xs2elu

Need extra support?

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

Learn More

Forum Channels