OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform OroPlatform – How do I? Questions Select All Check Box In Datagrid

This topic contains 6 replies, has 3 voices, and was last updated by  Andrey Yatsenko 2 years ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #41133

    ummarfarooq87
    Participant

    Hi Team
    How to configure the Select all check box in datagrid.yml. Please Let us know any solution
    Thanks and Regards,
    Ummar

Viewing 6 replies - 1 through 6 (of 6 total)
  • Author
    Replies
  • #41134

    Michael
    Keymaster

    Please clarify your question. A screenshot/mockups of what you are trying to achieve may also help.

    #41138

    ummarfarooq87
    Participant

    Hi Michel,
    Please find the attachment datagrid.yml and UI of datagrid. Please let us know solution for select all checkbox
    Thanks and Regards,
    Ummar

    Attachments:
    1. datagrid-128x72
    #41140

    ummarfarooq87
    Participant

    Please find the datagrids.yml
    promotion-partindex-grid:
    source:
    type: orm
    query:
    select:
    – pind.id
    – pind.partindexcode
    – pind.partindexlabel
    – vo.name
    – >
    (CASE WHEN (:partindex IS NOT NULL) THEN
    CASE WHEN (:partindex MEMBER OF pind.promotions OR pind.id IN (:data_in)) AND pind.id NOT IN (:data_not_in)
    THEN true ELSE false END
    ELSE
    CASE WHEN pind.id IN (:data_in) AND pind.id NOT IN (:data_not_in)
    THEN true ELSE false END
    END) as hasPartindex

    from:
    – { table: IZMOPartReferenceBundle:PartIndex, alias: pind }
    join:
    inner:
    – { join: pind.owner, alias:vo }
    – { join: IZMOPartReferenceBundle:EnvironmentMaster, alias: env,conditionType: WITH, condition: env.id = pind.environment}
    bind_parameters:

    name: partindex
    default: null
    type: integer
    columns:
    hasPartindex:
    label: ‘izmo.promotions.promotion.haspartindex.label’
    editable: true
    frontend_type: boolean
    partindexcode:
    label: ‘izmo.partreference.partindex.partindexcode.label’
    shortenableLabel: false
    partindexlabel:
    label: ‘izmo.partreference.partindex.partindexlabel.label’
    shortenableLabel: false
    properties:
    id: ~
    sorters:
    columns:
    partindexcode:
    data_name: pind.partindexcode
    partindexlabel:
    data_name: pind.partindexlabel
    filters:
    columns:
    partindexcode:
    type: string
    data_name: pind.partindexcode
    partindexlabel:
    type: string
    data_name: pind.partindexlabel
    options:
    entityHint: partindex
    rowSelection:
    dataField: id
    columnName: hasPartindex
    selectors:
    included: ‘#appendIzmoprompartindex’
    excluded: ‘#removeIzmoprompartindex’

    • This reply was modified 2 years, 1 month ago by  ummarfarooq87.
    • This reply was modified 2 years, 1 month ago by  ummarfarooq87.
    #41147

    Michael
    Keymaster

    If you are asking about how to add “Select All / None / Visible” drop-down to allow users to select multipe records in the datagrid and then perform some action on the selected records – please check https://github.com/oroinc/platform/blob/3.1.17/src/Oro/Bundle/DataGridBundle/Resources/doc/backend/extensions/mass_action.md

    #41202

    ummarfarooq87
    Participant

    Hi Michel,
    In this datagrid how to implement the select all option

    Thanks and Regards,
    Ummar

    #41210

    Andrey Yatsenko
    Moderator

    To see the “select all” option you have to implement at least one mass action by following the documentation article that Michael shared before.

Viewing 6 replies - 1 through 6 (of 6 total)

The forum ‘OroPlatform – How do I? Questions’ is closed to new topics and replies.

You will be redirected to [title]. Would you like to continue?

Yes No