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

  • Home
  • SEARCH
  • 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 7056269
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:50:50+00:00 2026-05-28T03:50:50+00:00

Only yesterday I started using jq-grid and the way things are done is somewhat

  • 0

Only yesterday I started using jq-grid and the way things are done is somewhat vague to me thus far. See below…

    function setUpStudentEntryGrid(numberofstuds){
        $("#studentset").jqGrid({
            url:"<c:url value='/registrationcarts/constructjson/'/>"+numberofstuds, 
            datatype: "json",
            colNames:['id','First Name', 'Last Name'], 
            colModel:[ 
                       {name:'id',index:'id', width:60}, 
                       {name:'firstName',index:'fName', width:300, editable:true},
                       {name:'lastName',index:'lastName', width:300, editable:true}
                     ],                  
            rowNum:10, 
            rowList:[10,20,30], 
            pager: '#pager',
            sortname: 'id', 
            viewrecords: true, 
            sortorder: "desc",
            editurl: "<c:url value='/students/addnew'/>", 
            caption: "Using navigator"
        });
        $('#studentset').jqGrid('navGrid',"#pager",{edit:false,add:false,save:false,del:false,search:false});
        $('#studentset').jqGrid('inlineNav',"#pager");
    }

I have inline editing working and data is going to the database. My action simply returns a string saying “student saved”. On fire-bug I am geting my return string in the responce so my action is working .I plan to use $('#studentset').jqGrid('setRowData',Newly_created_ID,{firstName:"name", lastName:"name"}); after modifying my string.

How do I access and update the row ID manually using inlineNav as show above?

I am grsaping at straws, so to speak, as I am not too sure on how to set this up. Can someone please advise.

Thank you.

  • 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-05-28T03:50:51+00:00Added an answer on May 28, 2026 at 3:50 am

    Ok so all I needed to do was call data.tosource and I was able to see everything contained in the data object. The key I was interested in is the responseText, hence

                onSelectRow: function(id){ 
                    if((id != null)&&(id!==lastsel)){ 
                        $('#studentset').jqGrid('restoreRow',lastsel); 
                        $('#studentset').jqGrid('editRow',id,true,'',function(data){
                            alert(data.responseText);
    
                        });                         
                        lastsel=id; 
                    } 
                }
    

    Hope this helps someone in need !

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

Sidebar

Related Questions

Using only ANSI C, what is the best way to, with fair certainty, determine
I started using ModX yesterday. Prepared my multilingual website using this tutorial: http://www.multilingual-modx.com/blog/2011/multilingual-websites-with-modx-and-babel.html .
I'm very new to android, in fact only started yesterday. I managed to get
I am very new to OData (only started on it yesterday) so please excuse
I just started a new job yesterday and this is only my second job
I am fairly new to using infragistics controls (started yesterday). While they are (very)
I just started looking into jQuery yesterday, before this I programmed in only PHP.
I am using the Primefaces upload tool since yesterday, but today i started to
I have started using Ninject 2 (downloaded from Github yesterday including the MVC extension
The only nice way I've found is: import sys import os try: os.kill(int(sys.argv[1]), 0)

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.