JQGrid Change Value Of Cell While Changing Another Cell

TheChampp

I have jqgrid with inline editing mode. What I want to accomplish is when changing cell value, another cell value to be changed too.

What I have for now is:

ondblClickRow: function (id) {
    var selR = $(this).getRowData(id);

    $("#" + $(selR.Inflow).attr("id")).keypress(function () {              
      $(obj.grid).jqGrid("setCell", id, "Inflow", "123321");
 });
}

With this try the cell value is changed but edit mode is disabled after invoking setCell. I want to change it but to stay in edit mode. Any ideas ?

Oleg

I would recommend you to define dataEvents property of editoptions of the first column. You can bind change event handler which you define inside of dataEvents. It allows you to monitor the changing of the first column. To access the second column inside of the change event handler you can use jQuery.val method, where you use id selector. You need just to know that ids of all fields on inline editing are build based on the rowid (the id of outer <tr> element) appended with underscore ("_") and the name on the column. The "UPDATED 3" part of the answer provides the demo which do the changes in more common case. To get the rowid from the Event object e you can use $(e.target).closest("tr.jqgrow").attr("id").

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

JQGrid Change Value Of Cell While Changing Another Cell

From Dev

jqgrid change values of editable cell on change of another cell (dependent columns)

From Dev

Change value in a cell based on value in another cell

From Dev

Change JQGrid Cell value on Button Click

From Dev

Change colour of a cell based on the value in the cell and text in another cell

From Dev

Change the formatting of a cell depending on the value of that cell and another cell

From Dev

Change NSTableView cell value While Editing

From Dev

Change Value of Excel Cell when another cell contains specific character

From Dev

Change a cell's color on value of another cell, then change to a different color if I put a value into the cell

From Dev

Changing value of a cell with JavaScript

From Dev

DataGridView Cell Value Changing

From Dev

Changing value of a cell with JavaScript

From Dev

DataGridView Cell Value Changing

From Dev

automatically changing cell value

From Dev

Copy the cell value to another cell if

From Dev

Pandas changing cell values based on another cell

From Dev

Formula to change another cell

From Dev

Replacing a value in a cell with another

From Dev

Changing Excel Cell colours once a word/value in another cell is entered/changed

From Dev

Dojo dgrid - change cell value based on another cells value

From Dev

Change Cell Value if There is Overflow

From Dev

Cell value change with Month

From Dev

Change value of cell in Javascript

From Dev

Change a cell number in formula from another cell

From Dev

jqGrid 4.8.0 - How to get cell type or cell value using jsonmap

From Dev

get text from jqgrid cell value

From Dev

jqGrid Editing – override logic to define cell value

From Dev

How to get the particular cell value in JQgrid

From Dev

JqGrid getRowdata gives cell value on a row as string

Related Related

  1. 1

    JQGrid Change Value Of Cell While Changing Another Cell

  2. 2

    jqgrid change values of editable cell on change of another cell (dependent columns)

  3. 3

    Change value in a cell based on value in another cell

  4. 4

    Change JQGrid Cell value on Button Click

  5. 5

    Change colour of a cell based on the value in the cell and text in another cell

  6. 6

    Change the formatting of a cell depending on the value of that cell and another cell

  7. 7

    Change NSTableView cell value While Editing

  8. 8

    Change Value of Excel Cell when another cell contains specific character

  9. 9

    Change a cell's color on value of another cell, then change to a different color if I put a value into the cell

  10. 10

    Changing value of a cell with JavaScript

  11. 11

    DataGridView Cell Value Changing

  12. 12

    Changing value of a cell with JavaScript

  13. 13

    DataGridView Cell Value Changing

  14. 14

    automatically changing cell value

  15. 15

    Copy the cell value to another cell if

  16. 16

    Pandas changing cell values based on another cell

  17. 17

    Formula to change another cell

  18. 18

    Replacing a value in a cell with another

  19. 19

    Changing Excel Cell colours once a word/value in another cell is entered/changed

  20. 20

    Dojo dgrid - change cell value based on another cells value

  21. 21

    Change Cell Value if There is Overflow

  22. 22

    Cell value change with Month

  23. 23

    Change value of cell in Javascript

  24. 24

    Change a cell number in formula from another cell

  25. 25

    jqGrid 4.8.0 - How to get cell type or cell value using jsonmap

  26. 26

    get text from jqgrid cell value

  27. 27

    jqGrid Editing – override logic to define cell value

  28. 28

    How to get the particular cell value in JQgrid

  29. 29

    JqGrid getRowdata gives cell value on a row as string

HotTag

Archive