Note that there are some explanatory texts on larger screens.

plurals
  1. POjqGrid: Edit more than one cell using Cell Editing
    primarykey
    data
    text
    <p>I have a problem. I'm using cell editing for jqGrid. I don't wish to change that for inline editing, since I need to keep it that way, only allowing to edit one cell at a time.</p> <p>The thing is that I have a field which, after being edited, needs to force other cells to be edited. So, I need those cells to be open for edit if the user changes the first one to a certain value.</p> <p>Is there any way to do this? I have tried with .jqGrid('editCell',...), but that way I only can do that with ONE cell at a time. And I can't ask for the next cell that has to be edited to force the 3rd and last to be edited, because it may happen that a user wants to edit that 2nd cell alone, which should result in this behaviour.</p> <p>Any way to do this?</p> <p>Thanks</p> <p><strong>UPD</strong>:</p> <p>To make this more clear, I'll give an example. Supposse you have a table that lists the cars that people in your neighborhood has. It has 4 cells:</p> <p>ID - CarCompany - Model - Year</p> <p>Where ID is some identification field, CarCompany is the name of the company that manufactures the car, Model is the name of the model and Year is the year's model.</p> <p>So for instance you have the following records:</p> <p>0 - Ford - Focus - 2010</p> <p>1 - Cadillac - Escalade - 2004</p> <p>2 - Lamborghini - Diablo - 2012</p> <p>The owners can change the car. They can change the Year, which shouldn't change any of the other cells (because they changed their cars for a newer version of their current car) and they can change the Model for another one with the same year. But if they change their cars for one from another company, you must update the Model and the Year (let's just assume you HAVE TO change the year). Therefore:</p> <ul> <li>If you change Year, that's the only cell you have to change</li> <li>If you change Model, that's the only cell you have to change</li> <li>But if you change CarCompany, you have to edit Model and Year.</li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload