jQWidgets Forums

jQuery UI Widgets Forums Grid how to get datafield values not displayfield values

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

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

  • emden
    Participant

    Hi

    I need to save the rows data in a mysql database when the Ok button is pressed.

    I tried several methods

    getrows
    getrowdata
    getrowdatabyid
    etc

    problem is that i get the displayfield values but i need the datafield values.

    the updaterow works

    updaterow: function (rowid, rowdata, commit) {

    var data4 = { id:rowdata.id,
    test_var_id: rowdata.veld,
    test1_var_id: rowdata.operator,
    test_waarde: rowdata.criteria,
    test1_waarde: rowdata.waarde};

    t_veld, t_operator, t_criteria,t_waarde are the values that i get using above methods in the save button function.

    kind regards,

    Edwin


    Peter Stoev
    Keymaster

    Hi,

    getrows returns an Array of Rows.
    getrowdata and getrowdatabyid returns a row.

    All of the above methods include All Row members including displayfields and datafields.

    Best Regards,
    Peter Stoev

    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.