jQWidgets Forums

jQuery UI Widgets Forums Grid Jqxgrid – Checkbox – Unable to check / uncheck

Tagged: ,

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

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

  • alanyeo
    Member

    Hi All Experts,

    Good afternoon to all experts.

    I recently implement a table pagination using jqxgrid with checkbox, I implement the listener by using codes below, and it works ok

    $(“#jqxgrid”).bind(‘cellendedit’, function (event) {
    var schoolCode = $(“#jqxgrid”).jqxGrid(‘getcellvalue’, event.args.rowindex,’schoolCode’);
    if (event.args.value) {
    addToList(schoolCode, event.args.rowindex);
    //$(“#jqxgrid”).jqxGrid(‘selectrow’, event.args.rowindex);
    }
    else {
    removeFromList(schoolCode);
    //$(“#jqxgrid”).jqxGrid(‘unselectrow’, event.args.rowindex);
    }
    });

    I’m also using the following property for your reference

    $(“#jqxgrid”).jqxGrid(
    {
    width: width,
    source: dataAdapter,
    theme: theme,
    //sortable: true,
    autorowheight: true,
    autoheight: true,
    pageable: true,
    autoheight: true,
    altrows: true,
    editable: true,
    selectionmode: ‘none’,
    columnsresize: true,
    //columnsreorder: true,
    columns: initColumns(data.d)
    });

    But when I was trying to uncheck it by customize method witht he follwoing method, it’s not working to check or uncheck by using selectrow or unselectrow

    $(“#jqxgrid”).jqxGrid(‘selectrow’, rowIndex);

    May I ask if anyone can help me on this?

    Thank you so much and appreciate if you can guide me.


    Dimitar
    Participant

    Hello alanyeo,

    The demo Custom Rows Selection may be helpful to you. Please check it out.

    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.