Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts

  • spitzoholic
    Participant

    Dear Peter,
    Thank you for your FAST response.

    So i corrected the code to,

    dataType:"json",
      updateRow: function (rowid, rowData, commit) {
        // synchronize with the server - send update command
        var data = "update=true&nd_nmr=" + rowData.nd_nmr + "&pa_nmr=" + rowData.pa_nmr;
        data = data + "&id=" + rowid;
        $.ajax({
          dataType: 'json',
          url: 'get_data.php',
          type: 'POST',
          data: data,
          success: function (data, status, xhr) {
            // update command is executed.
            commit(true);
          }
      });		
    },
    dataFields:[
      {name:'id',type:'int'},
      {name:'nd_nmr',type:'string'},
      {name:'pa_nmr',type:'string'}
    ]

    and,

    columns: [
      {text:'ID',dataField:'id',align:'center',pinned:'true',width:'150'},
      {text:'Nomor ND',dataField:'nd_nmr',align:'center',pinned:'true',cellsalign:'center',width:'75'},
      {text:'Nomor PA',dataField:'pa_nmr',align:'center',pinned:'true',width:'250'}
    ]

    Still, it won’t store the data.

    In another post, i saw that jqxGrid is twice (if i remembered correctly) powerfull than jqxDataTable. Is there any workaround to add jqxDataTable advanced filtering to jqxGrid?

    Thank You.

Viewing 1 post (of 1 total)