Search code examples
extjscomboboxextjs5extjs6sencha-architect

How to restrict a combobox to show only few records coming from the store


I have a grid panel with columns which are editable out of those column one of them has an editor type combobox . so this combobox i have a store which is returning data. From the data returned i want to populate only few records records which contain parameter example: x == true. so basically I have check every record and if the records x value is true I should populate it in the combobox. Else it should not show in the dropdown. I have a sample fiddle here

Please help me solving this.


Solution

  • You can filter the store, like:

    filters: [{ property: 'canSee', value: true }]
    

    Working example: https://fiddle.sencha.com/#fiddle/22fu&view/editor