varCmgoodsfee =NewExt.grid.ColumnModel ([Rmgoodsfee, {header:"id", tooltip:"id", Dataindex:' ID ', ID:' ID ', Width:80, align:' Center ', Hidden:true}, {header:"Billing Type", tooltip:"Billing Type", Dataindex:' Chargaccname ', ID:' Chargacccode ', Width:120, sortable:true,//summarytype: ' Count ',Hideable:false //summaryrenderer:function (V, params, //data) { //return ((v = = 0 | | v > 1)? ' (total) ': //' (total) '); // }}, {header:"Payment direction", tooltip:"Payment direction", Dataindex:' Chargingdirection ', ID:' Chargingdirection ', Width:120, sortable:true}, {header:Amount, tooltip:Amount, Dataindex:' Feeamount ', ID:' Feeamount ', Width:150, align:' Center ', sortable:true, //summarytype: ' Sum ',Editor:NewExt.form.NumberField ({style:' Text-align:left ', Decimalprecision:4, Allownegative:false,//cannot be a negative numbermaxvalue:999999999, Maxtext:' Maximum no more than 999,999,999! ' }) }]);//var summary = new Ext.ux.grid.GridSummary ();Waybillsdetailgridfee =NewExt.grid.EditorGridPanel ({collapsible:false, Clickstoedit:1, Animcollapse:false, Striperows:true, Store:waybilldetailstorefee, Cm:cmgoodsfee, Height:Ext.getBody (). GetHeight ()-175, Frame:true, Loadmask:true,//Loading Mask AnimationsColumnlines:true, AutoShow:false, Viewconfig: {forcefit:false}, Clickstoedit:1, listeners: {cellclick:function(grid, RowIndex, ColumnIndex, e) {varRecord =Grid.getstore (). GetAt (RowIndex); if(Record.get (' chargaccname ') = = ' Long distance shipping ' && columnindex = = 4) { return false; } Else { return true; } } } //plugins:summary});
ExtJS 3 Control grid a row of a column is not editable