سؤال

I have a JQGrid with a hidden column, I would like the data in this column to be posted back to the server when the user edits it in the edit dialog box.

As it stands, the only way I can see this form data in the postback is when using the column property Editable = true, however, this then displays a text input box on the dialog. With Editable = false the input box is hidden but the value is not in the postback.

Having the property displayed in the edit dialog is not ideal as I don't want the user to be able to change the value, but I need it posted back to the server for business logic reasons.

Any help would be appreciated.

هل كانت مفيدة؟

المحلول

You can hide the data in client side by $('#tr_<ColumnName>').hide(); Use it in appropriate places like in ADD and EDIT functions of the JqGrid. I solved the problem through this way. Any elegant suggestion is welcome. P.S - Actually credit goes to my team-mates. They found the way.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top