javascript - Get row data in extjs on cell edit -


I am creating an excise grid that most columns are editable. What do I want if the user changes a column value to blur, then I'll call some method and calculate something based on the value of the other column. And changing the column value with the calculation values ​​is condom. ITaxOverrideModel = new Ext.grid.ColumnModel ([{ID: 'fromDate', Header: "From Date", dataIndex: 'fromDate', Width: 80, Renderer: drenderer, Editor: this.fromDateEditor} {id: 'todate', header: "Date to date", dataIndex: 'todate', width: 80, renderer: drenderer, editor: this.toDateEditor} {id: 'rawTax' Header: "Raw Tax", dataIndex: 'rawTax', width: 80, aligned: 'right', selectOnFocus: true, editor: New Ext.form.NumberField ({"stigma": this.calculateTaxForword}), renderer : Gts.payItemRenderer ()}, {id: 'surcharge', header: "surcharge", dataindex: 'overload', width: 80, sec Draw: 'Right', selectOnFocus: True, Editor: New Extension.form number ({}), Renderer: Gts.payItemRenderer ()}, {ID: 'SAS', Header: "Cass", DataIntex: Select 'right', select 'right', select 'onfox: true, editor: new extension .form.NumberField ({}), renderer: Gts.payItemRenderer ()}, {id:' totalTax ', header : "Total tax", dataIndex: 'totalTax', width: 80, align: 'right', selectOnFocus: true, editor: new extension.form.numberfield ({}), renderer: gtspi TMRender ()}, {ID: Tax Amount, Header: "Taxable Earnings", DataInndex: 'Tax Amount', Width: 100, Align: 'Right', selectOnFocus: True, Editor: New Ext.form.NumberField ({}), Renderer: Gts.payItemRenderer ()}, {id: 'comment', header: "reminders", dataIndex: 'comment', width: 250, editor: new extension.form. 'Modified date', 'Date modified', width: 100, Renderer: Ext.util.Format.dateRenderer ('DHH: Eye: Modified Date'), Textfield ({}}, {ID: 'Revised Date', Header: S '), width: 150}]); This.itoGrid = New Ext.grid.EditorGridPanel ({Shop: this.itoStore, Cm: incomeTaxOverrideModel, autoExpandColumn: 'Comment', Automatic Scroll: True, containerScroll: True, Frame: False, stripeRows: True, Width : 830, Height: 233, ClickAdit: 1, Layout: 'Fit', Load Mask: True, Tuber: [This Adaction, This Deletion Action], TrackMouse Over: True});

I made it on the method

  computeTaxfernework: function () {console.log (this.itGrid) //console.log(this.itoGrid GetStore () .getModifiedRecords ())}  

But this is nothing to come about. I have to calculate the value based on raw taxes. Shares and Cessors So I need all the value in my method. Please help with any one

cell editing Before that you

an edit event with the following properties: grid - grid record - record edit field - field name was edited value - field value Is being edited. Row - Grid table row column - Define column that is being edited in the grid column. RowIdx - The row index that is being edited by the ColIdx - column index that is being edited - to cancel it to edit, return it to the correct or wrong with your handler. EOpts: object - Object object near Ext.util.Observable.addListener


Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -