jQWidgets Forums

jQuery UI Widgets Forums Grid Grid CheckBox column

This topic contains 3 replies, has 2 voices, and was last updated by  Peter Stoev 12 years, 3 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Grid CheckBox column #15866

    taraman
    Member

    Hi,
    I have a grid with checkBox Column, which used to delete its record.

    I have a button below the grid used to collect each row data if the checkbox of this row is checked.

    How can I do that?

    thanks,
    Taraman

    Grid CheckBox column #15869

    Peter Stoev
    Keymaster

    Hi Taraman,

    When a checkbox’s value is changed, the cellvaluechanged event is raised.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Grid CheckBox column #15881

    taraman
    Member

    thanks Peter,

    How can I loop over grid’s rows to get columns value,

    I need to do something like this:

    for (var i= 0; i<gridRowsCount; i++)
    {
    if (checkBox is checked)
    {
    var record = {
    StudentId = studentIdColumn.value
    SchoolId = SchoolIdColumn.value
    IsAbbroved = checkBox.value
    }
    studentArr.push(record )
    }
    }

    thanks,
    Taraman

    Grid CheckBox column #15895

    Peter Stoev
    Keymaster

    Hi Taraman,

    To get all displayed rows in jqxGrid, use the “getrows” method.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.