Post immutable values ​​in jqGrid?

I am using jqGrid and I would like to publish non-editable values ​​on the server. I am editing line by line (not form). Is it possible?

The column is visible, and I'm using inline editing. Data is published using the grid's "editurl" property.

** Solution ** I solved it in a completely different way, not using jqGrids setCell, but instead setting the value of the text field using document.getElementById (selr + "_Verksamhetskod"). Value = data.

Not exactly what I had in mind initially, but it works ...

+5
source share
2 answers

Just add this to your cell configuration:

editable: true, editoptions: {disabled: true}

+13
source

, , , , , .

Jquery " "

$("#PrimaryKey".columnName").attr("disabled", true)

, .

0

All Articles