xgote

Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Author
    Replies
  • in reply to: Best way to format code for forums? #92655
    xgote
    Participant

    Looks like I figured it out again.. hehe sorry to spam so much.

    in reply to: Best way to format code for forums? #92654
    xgote
    Participant

    I noticed when I typed the tags literally in the wysiwyg editor, it did something interesting.. trying again as a test:

    in reply to: Edit multiple rows, submit as batch? #92653
    xgote
    Participant

    xgote said:

    So I can get the grid to update from a select input but it changes back after a row is selected. Why is that?


    I was calling .jqGrid('restoreRow') during a “onSelectRow”.

    in reply to: Edit multiple rows, submit as batch? #92652
    xgote
    Participant

    var lastsel; jQuery("#list4").jqGrid({ datatype: "local", height: 250, colNames: ['Inv No','Date', 'Client', 'Amount','Tax','Total','Notes'], colModel: [ {name:'id',index:'id', width:60, sorttype:"int"}, {name:'invdate',index:'invdate', width:90, sorttype:"date"}, {name:'name',index:'name', width:200, editable:true, edittype: "select", editoptions: { value: testvalue(),dataEvents: [ { type: 'change', data: { cell: 'name' }, fn: test } ] }, editrules: { required: true } }, {name:'amount',index:'amount', width:80, align:"right",sorttype:"float"}, {name:'tax',index:'tax', width:80, align:"right",sorttype:"float"}, {name:'total',index:'total', width:80,align:"right",sorttype:"float"}, {name:'note',index:'note', width:150, sortable:false} ], onSelectRow: function(id){ if(id && id !== lastsel) { jQuery('#list4').jqGrid('restoreRow',lastsel); jQuery('#list4').jqGrid('editRow',id,true); lastsel = id; } }, multiselect: true, caption: "Manipulating Array Data" }); function test(e) { console.log(e.data['cell']); var inputValue = jQuery('#' + lastsel + '_' + e.data['cell']).val(); // form input value mydata[lastsel-1]['name'] = inputValue; jQuery("#list4").setRowData(lastsel, {name: 'changed!'}); jQuery("#list4").setCell(lastsel, e.data['cell'], 'changed!'); } function testvalue() { return "1:one;2:two;3:three;4:four!!!"; } var mydata = [ {id:"123",invdate:"2007-10-01",name:"test",note:"note",amount:"200.00",tax:"10.00",total:"210.00"}, {id:"2",invdate:"2007-10-02",name:"test2",note:"note2",amount:"300.00",tax:"20.00",total:"320.00"}, {id:"3",invdate:"2007-09-01",name:"test3",note:"note3",amount:"400.00",tax:"30.00",total:"430.00"}, {id:"4",invdate:"2007-10-04",name:"test",note:"note",amount:"200.00",tax:"10.00",total:"210.00"}, {id:"5",invdate:"2007-10-05",name:"test2",note:"note2",amount:"300.00",tax:"20.00",total:"320.00"}, {id:"6",invdate:"2007-09-06",name:"test3",note:"note3",amount:"400.00",tax:"30.00",total:"430.00"}, {id:"7",invdate:"2007-10-04",name:"test",note:"note",amount:"200.00",tax:"10.00",total:"210.00"}, {id:"8",invdate:"2007-10-03",name:"test2",note:"note2",amount:"300.00",tax:"20.00",total:"320.00"}, {id:"9",invdate:"2007-09-01",name:"test3",note:"note3",amount:"400.00",tax:"30.00",total:"430.00"} ]; for(var i=0;i<=mydata.length;i++) { jQuery("#list4").jqGrid('addRowData',i+1,mydata); } });

    I'm attempting to write something that will submit changed rows in batch.

    in reply to: Basic example – overlay stuck after load #92650
    xgote
    Participant

    I'm guessing this is a styling issue.

    in reply to: Edit grid on client then save as a whole #92649
    xgote
    Participant

    tony said:

    Hello,

    As I say again and again – Did you have consult the documentation?

    So the answer is in the docs

    http://www.trirand.com/jqgridw&#8230;..ki:methods

    What about using the method

    getRowData

    Let's

    in reply to: Edit grid on client then save as a whole #92613
    xgote
    Participant

    I actually just asked about this before I seen your post.. Sorry for the double post then 🙂

    Curious to learn about this as well.

    Thanks!

    in reply to: Grid inside a tab / hidden container #92608
    xgote
    Participant

    I modified this style (after drinking caffeine):

    To

    There are better ways to do this I know but essentially this problem was an overly zealous style definition..

Viewing 8 replies - 1 through 8 (of 8 total)

Stay connected with us in your favorite flavor!