Skip to content

To add default filter to grid? #2849

Closed
Closed
@ReginaLisa

Description

@ReginaLisa

I have created one custom module with title & status field attribute in admin grid.

Grid collections in module_test_grid_block.xml

         <arguments>
             <argument name="id" xsi:type="string">testGrid</argument>
              <argument name="dataSource" xsi:type="object">Namespace\Module\Model\ResourceModel\test\Collection</argument>
              <argument name="default_sort" xsi:type="string">id</argument>
              <argument name="default_dir" xsi:type="string">desc</argument>                             
              <argument name="grid_url" xsi:type="url" path="*/*/grid"><param name="_current">1</param></argument>
        </arguments>

I just want to show the datas which are enabled.Have any option to add default filter in admin grid collections?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions