jQuery UI Widgets Forums Grid Checkbox on group header

This topic contains 3 replies, has 2 voices, and was last updated by  vettore 5 years, 3 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Checkbox on group header #106364

    vettore
    Participant

    Hi,
    I’ve a grid with the following settings:
    {
    selectionmode: “checkbox”,
    groupable: true
    }

    When I group with a column, I’d like to have a checkbox inside group header to select only its children (subrows)… Is it possible?
    Now only the children (subrows) have checkboxes.

    Looking forward.
    Regards.

    Checkbox on group header #106386

    Todor
    Participant

    Hello vettore,

    Unfortunately there is no such built in feature. I’ve made you a workaround with toolbar which contains columns with checkbox. On check a grouping is applied. Please review it whether it fits your needs.

    Let us know if you need further assistance.

    Best Regards,
    Todor

    jQWidgets Team
    https://www.jqwidgets.com

    Checkbox on group header #106601

    vettore
    Participant

    Hi,
    unfortunately this is not I want to do, sorry.
    My goal is to create a checkbox into all grouping header row that allows the user to select all group’s children.

    I can create a checkbox thanks to groupsrenderer event, but when I call the ‘selectRow’ method (to select subrows), groupsrenderer event is called back, causing problems… Also, groupsrenderer event is called a lot of times and I cannot draw the checkbox correctly.

    I’ll attach a file for clarity: https://imgur.com/ooSk7RQ
    Regards.

    Checkbox on group header #106617

    vettore
    Participant

    Hi,
    I finally managed to do what I wished.

    Thank you anyhow.
    Best regards.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.