Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7740873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T08:53:17+00:00 2026-06-01T08:53:17+00:00

in my jqgrid i have field in a table which represents the id and

  • 0

in my jqgrid i have field in a table which represents the id and i have set it as follows

{name:'e_info_id',index:'e_info_id', width:60, sorttype:"int",key: true}

and for json reader i have set it as

 jsonReader : { repeatitems: false ,id: "e_info_id",root:"rows"}

Now when i click on the Add/Edit icon , an Edit dialog opens up , as i haven’t set e_info_id as editable:true that id field won’t shown into the form dialog box, but when i click on submit i am not be able to access that id in a following function

 onclickSubmit: function (options, postdata) {

          postdata.e_info_id // is undefined 

 }

but as soon as i define e_info_id as editable=true , postdata.e_info_id has a value now. Now i see this a quite strange and i dont know how to get rid off this

{name:'e_info_id',index:'e_info_id', width:60, sorttype:"int",key: true,editable:true}

Moreover , to keep user from accidently update the e_info_id i tried to hide it as follow and keep the editable:true just to get the value of e_info_id in $.jgrid.edit.

   beforeShowForm: function(form) { $('#tr_e_info_id', form).hide(); }

But the issue with this , when i double click the row of a table beforeShowForm doesnt get fire so the e_info_id field appears.

ondblClickRow: function(rowid) {
        $(this).jqGrid('editGridRow',rowid);
    }

now i am out of workarounds , so basically my problem is not to show the e_info_id field in a add/edit dialog box and yet get the value of e_info_id in onclickSubmit

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T08:53:19+00:00Added an answer on June 1, 2026 at 8:53 am

    Why you use both key: true and jsonReader : { id: "e_info_id",...}? I think it’s you main problem. I recommend you remove id: "e_info_id" and use key: true only.

    Moreover I didn’t understand the meaning of the 'e_info_id' column. If you fill jqGrid with the correct id attributes in the rows (id of <tr>) then the id will be sent to the server under the name 'id' (if you remove id: "e_info_id" from jsonReader). Do you want to show the column for the user at all? Do you want that the user see the information in “Edit” form? All options is possible, but it’s not depend

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 1000 records in a table which holds position field starting from 1
I have primary key of my row as hidden field in my jQGrid. It
I have a jqGrid table, the same one from this problem , which I
Does jqGrid just have any callback after single field search? The onSearch callback fires
hi all i have jqgrid and set update inline . i wrote this code
I have a toolbar filter set up that works on a JQGrid of mine.
Please look at my jsFiddle posted: http://jsfiddle.net/chugh97/w3Kzt/1/ I have a fixed width jqGrid with
I have a jqgrid where the database table has a few thousand rows, but
I'm looking for solution which gives ability to disable column sort in jqGrid table
I have a jqGrid table and it works well. I use Spring and communicate

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.