jQWidgets Forums

jQuery UI Widgets Forums Grid grid checkbox value on cellclick

This topic contains 2 replies, has 2 voices, and was last updated by  aoverton07 11 years, 11 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • grid checkbox value on cellclick #25446

    aoverton07
    Participant

    I have a checkbox column in my grid and I want to update my database whenever a checkbox is checked. So i bound to the cellclick event, get the row data, and send to server. The problem is that it gets the row data before it takes action on the checkbox. So the value of the checkbox is not correct. First I implemented a work around by just switching the value before i update my database, but then i realized that im binding the cellclick event so if an user clicks in the checkbox cell without actually ‘checking’ the box, your value is wrong again. Is there anyway to bind to the actual ‘checked/unchecked’ event for checkbox columns?

    grid checkbox value on cellclick #25448

    Peter Stoev
    Keymaster

    Hi,

    You may use the “updaterow”callback function or the “cellendedit” event. These are called when the editing has finished.

    Best Regards,
    Peter Stoev

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

    grid checkbox value on cellclick #25449

    aoverton07
    Participant

    Peter,

    Thanks, cellendedit solved my problem!

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

You must be logged in to reply to this topic.