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 5978307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:29:49+00:00 2026-05-22T21:29:49+00:00

This is a grid im currently working on var lastsel; grid.jqGrid({ url:’grid_data_loader.php, datatype: ‘json’,

  • 0

This is a grid im currently working on

var lastsel;

grid.jqGrid({
url:'grid_data_loader.php,
datatype: 'json',
mtype: 'POST',
colNames:['ID','Date Created','Subject','Status','Location','Action'],
colModel :[ 
  {name:'id', index:'id', align:'center', hidden:true},
  {name:'date'}, 
  {name:'subject'},
  {name:'status',align:'center'},
  {name:'location',editable: true, align:'center', edittype:"select",

editoptions: { 
               dataUrl: 'control.php',
               dataEvents: [
                  {  type: 'change',
                     fn: function(e) {
                        grid.saveRow(lastsel,true);

                     }
                  }
               ]
}     


  },
  {name:'action'}
],
rowNum:10,
rowList:[10,20,30],
autowidth: true,
height: "100%", 
pager: '#pager',
sortname: 'id',
viewrecords: true,
rownumbers: true,
sortorder: "asc",
editurl: "control.php?case=8",
onSelectRow: function(id){
  if(id && id!==lastsel){
    grid.jqGrid('restoreRow',lastsel);
    grid.editRow(id,true);
    lastsel=id;
  }
}

});

everything works fine but i can’t figure how to check the server response after row is saved

any help would be great

Thanks

  • 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-22T21:29:50+00:00Added an answer on May 22, 2026 at 9:29 pm

    You can use aftersavefunc and errorfunc parameters of saveRow.

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

Sidebar

Related Questions

I've implemented a jqgrid with inline edit: var lastSel; jQuery(document).ready(function () { jQuery(#list).jqGrid({ url:
I am currently working with data grid where I only want to allow the
I'm currently working on a quote retrieval system for my employer's website using mysql/php/html.
I am using jqgrid, it is currently working fine in FF, IE8, Chrome, Safari.
I'm having a small problem. I have this grid with a column: <data:DataGrid ColumnHeaderStyle={StaticResource
from this (normal dataGrid) (source: narod.ru ) into this (horisontal data grid) How to
I'm able to change the width/height of the grid using this, so why won't
I am using this code to display a grid $('#table1 tr').bind('click', shows); function shows()
I have a Grid inside a Canvas defined like this: <Canvas x:Name=outerCanvas> <Grid Grid.Row=1
I'm trying at this: var cur_border = $('id_grid_pic_'+cur_id).attr('border'); alert(cur_border); But the alert sends back

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.