Hello,
I have a problem regarding the use of checkbox in a jqGrid.
In fact, I have a column in my grid that can only contain the letters 'O' or 'N'. This is what I get from the server when loading the grid.
The letter 'O' means yes and the letter 'N' means no.
I want this column to display checkboxes in the grid instead of these letters.
The checkboxes should be checked if the letter received from the server is 'O' and the other way round.
I also want these boxes to be clickable in order for the user to be able to click the boxes directly in the grid.
I also want the cell where a checkbox was clicked to be saved to the server instantly.
Also, as I have many columns in my grid, I'd like to be able to use form editing of a row where the input for this column is also a checkbox.
I figured out that in order to display a checkbox in the grid I should use a custom formatter as the column contains non standard input for checkboxes.
A custom formatter also helps define a click event for saving the data to the server.
But I can't figure out how to save the data.
I also have another problem:
When I click on a box in the grid, if the box's state is changed, this is not the case for the corresponding box in the associated edit form.
How can I fix that?
Here is the code I use:
$(document).ready(function() {
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top