jQuery UI Widgets Forums Grid event on click of select all

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 5 years, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • event on click of select all #55003

    Nagoor
    Participant

    hi,,

    i am using selection mode as check box. i need to call a function on click of select all cell in header. is there any event that triggers on click of that cell or is there any other way. pls help..

    Thanks & regards

    event on click of select all #55030

    Dimitar
    Participant

    Hello Nagoor,

    Here is how to subscribe to the click event of the Select/Unselect all checkbox:

    $("#jqxgrid").jqxGrid(
    {
        width: 850,
        height: 450,
        source: dataAdapter,
        sortable: true,
        filterable: true,
        ready: function () {
            $("#jqxgrid .jqx-grid-header .jqx-checkbox-default").click(function () {
                alert("Clicked Select/Unselect all");
            });
        },
        selectionmode: 'checkbox',
        altrows: true,
        columns: [
            { text: 'Ship Name', datafield: 'ShipName', width: 250 },
            { text: 'Shipped Date', datafield: 'ShippedDate', width: 100, cellsformat: 'yyyy-MM-dd' },
            { text: 'Freight', datafield: 'Freight', width: 150, cellsformat: 'F2', cellsalign: 'right' },
            { text: 'Ship City', datafield: 'ShipCity', width: 150 },
            { text: 'Ship Country', datafield: 'ShipCountry' }
        ]
    });

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

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

You must be logged in to reply to this topic.