Is there any way to hide a column in a jqGrid table, but have it show as read-only when the row is edited in the form editor modal dialog?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I just want to expand on queen3‘s suggestion, applying the following does the trick:
Scenario #1:
Solution:
The providerUserId is visible in the grid and visible when editing the form. But you cannot edit the contents.
Scenario #2:
Solution:
Notice in both instances I’m using jq to reference jquery, instead of the usual $. In my HTML I have the following script to modify the variable used by jQuery: