jQWidgets Forums

jQuery UI Widgets Forums Angular jqxGrid type checkbox unchecked events

This topic contains 3 replies, has 3 voices, and was last updated by  Hristo 4 years ago.

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

  • poiuy
    Participant

    I have a type checkbox table, right now I can capture the check events with onRowclick, onCellclick …. but I would like to capture the uncheck event to perform certain functions, is it possible?

    Thank you.


    Hristo
    Participant

    Hello poiuy,

    You could use the getselectedrowindexes method and compare the arrays with indexes before and after.
    Please, clarify your case.
    Because if you use the default checkbox mode then you could use the rowunselect event.
    I look forward to hearing from you.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    https://www.jqwidgets.com


    morosos
    Blocked

    Maybe I explained it wrong.

    I have rendered a <select> inside a cell using ‘cellsrenderer’, the select looks good visually, but I need to assign events for when the value changes, and I want to know how to assign them to them.

    ` private _getActualValueBoolean = (row): string => {
    let cell =
    ‘<select style=”width: 100%; height: 100%; border: white;” onchange=”myFunction()”>’;
    if (row.actualValue == ‘true’) {
    cell += ‘<option selected=”selected” value=”true”>Yes</option>’;
    cell += ‘<option value=”false”>No</option>’;
    }
    if (row.actualValue == ‘false’) {
    cell += ‘<option value=”true”>Yes</option>’;
    cell += ‘<option selected=”selected” value=”false”>No</option>’;
    }

    cell.concat(‘</select>’);

    return cell;
    };


    Hristo
    Participant

    Hello morosos,

    Please, clarify your case.
    If you want to add a widget inside the jqxGrid which could be used outside of the edit mode then it will be better to use the createwidget callback.
    I would like to suggest you look at this demo:
    https://stackblitz.com/github/jqwidgets/angular/tree/master/grid/widgetcolumn/

    Best Regards,
    Hristo Hristov

    jQWidgets team
    https://www.jqwidgets.com

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

You must be logged in to reply to this topic.