JQGrid Is it possible to change the value of cells in subgrid - jqgrid

I have a JQgrid and contains a subgrid.
when i edit the cell in the JQgrid, I want to change the value of cells in it's subgrid.
How can i do?

Related

Jqgrid - How to display selected rowdata of first grid in vertical columns in second grid

I have a situation where if I select the row of first grid its header and values should be vertically assigned in second jqgrid. I was able to get the rowdata from onselectrow but how should I pass this to second grid and display them vertically.
If anyone have any idea about how to achieve it ..I will really appreciate...Thanks!

checked all checkbox in subGrid when checked checkbox in jqGrid

I have one JqGrid and one subGrid. All JqGrid and subGrid I set:
multiselect: true
When I checked one row from JqGrid I want automatic checked all row in subGrid like this image below:

Datatable editable - make cell editable based on a condition

I am using Jquery Datatable Editable. I wanted to know if it is possible to make a cell editable based on a condition.
For example if my data is rendered this way,
Key text
1 Help
2 Choice
3 Edit
Key and Text are 2 columns, I want to make the cell with value choice only editable and the cells with value Help and Edit remain readonly. Is it possible to achieve this via Datatable editable ?
You may use jEditable js to make a particular class editable. Click HERE.

Kendo UI - Click Grid Row to Populate Another Grid

I have a Kendo grid that when you click on a row, I would like it to update the contents of another grid on the page. How would you write a function to tell the grid to update the second grid? As an example, the first grid would be a list of states and the second grid would show all of the cities within the selected state.
Just bind the click event on the rows of your first table :
$("#states tbody").on("click", "tr", changeState);
and then change the data of your second table accordingly :
$("#cities").data("kendoGrid").dataSource.data(getListOfCities());
Here is just some sample code : jsFiddle

jqGrid column autosize

Is there a way to make a jqGrid column autosize so that the contents of a grid cell isn't cut off if it is too long?
There are no "autosize" feature in the jqGrid, but you can use text wrapping in the grid cells (see here) and in the column headers (see here).

Resources