jQuery UI Widgets Forums Grid Help defining rowdata for updaterow in selectionmode: "singlecell",

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

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

  • DavidSimmons
    Participant

    In singlecell edit mode can you help me define what the object rowdata contains in this example. I am trying to send the rowid
    columnname, and value in the ajax if possible….

    var source = {
    datatype: “json”,
    cache: false,
    datafields: [
    { name: ‘ID’ },
    { name: ‘AppName’ },
    { name: ‘Description’ }
    ],
    id: ‘ID’,
    url: ‘ApplicationData.php’,
    updaterow: function (rowid, rowdata, commit) {
    **** Please help me define what the object row data would be *****

    }

    var dataAdapter = new $.jqx.dataAdapter(source);

    $(“#jqxgrid”).jqxGrid(
    {
    width: 600,
    height: 300,
    source: dataAdapter,
    theme: theme,
    editable: true,
    selectionmode: “singlecell”,
    columns: [
    { text: ‘ID’, dataField: ‘ID’, width: 60, hidden: false , editable: false},
    { text: ‘AppName’, dataField: ‘AppName’, width: 140, editable: true},
    { text: ‘Description’, dataField: ‘Description’, width: 300, editable: true}
    ]
    });


    Dimitar
    Participant

    Hello DavidSimmons,

    The argument rowdata is an object, containing the new value of the updated row. You can learn more about the updaterow property in Grid Data Sources.

    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.