jQWidgets Forums

jQuery UI Widgets Forums Grid CheckBox Column on change event

Tagged: ,

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • CheckBox Column on change event #57365

    joaompc
    Participant

    Hello,

    I have a table with two columns that are checkboxes. On is ‘Yes’ and another is ‘No’. When I change the state of ‘Yes’ to true I want that the state of ‘No’ automatically changes to false.

    { text: '<label>Sim</label>', columngroup: 'Implementação', datafield: 'Yes',    align: 'center',  cellsalign: 'center',  width: 50, columntype: 'checkbox'},
    { text: '<label>Não</label>', columngroup: 'Implementação', datafield: 'No',    align: 'center',  cellsalign: 'center',  width: 50, columntype: 'checkbox'},

    How can I do this?

    Is it possible to have text next to the checkbox? Like ‘Yes’ and the square at the right?

    Thank you very much.

    CheckBox Column on change event #57371

    Peter Stoev
    Keymaster

    Hi joaompc,

    The “setcellvalue” method allows you to modify the value of a given cell. Also to trigger changes, you can use the “cellvaluechanged” event. For more information about these, please take a look at the Grid’s API page which includes how-to examples.

    Best Regards,
    Peter Stoev

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

    CheckBox Column on change event #70086

    blast7
    Participant

    so the API says that the “cellvaluechanged” is actually “cellvaluechanging”…. which is correct?

    regardless, neither gets called when checking or unchecking the checkbox….. also, when using a two state checkbox I see that some of the checkboxes I’m not editing go to null when I check a checkbox (this is in a nested grid)

    finally, there is no mention of the ‘button’ columntype in the API, yet when set the column does display a button, which seems to show the boolean state of the button for the button text.

    Where can I find an up to date version of the API docs so I can get these widgets working properly?

    CheckBox Column on change event #89439

    Eaton
    Participant

    The event handle you are looking for is ‘checked’ on the Grid, the Docs you want can be found at the Checkbox API

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

You must be logged in to reply to this topic.