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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T01:52:00+00:00 2026-06-11T01:52:00+00:00

I am unable to delete a row from my JQGrid because I can’t figure

  • 0

I am unable to delete a row from my JQGrid because I can’t figure out how to send the data I need to the file that holds the MySQL. I am using ColdFusion.

In my JQGrid file, my editurl parameter is set as such:

editurl: url+"process_delete.cfc?method=process_delete&region="+region,

In my process_delete.cfc file, that holds my MySQL queries, I have this:

DELETE FROM awesome_table
WHERE region = '#region#' AND Field1 = '??????' AND Field2 = '???????'

I know that the MySQL is being reached – no problems there. Also, the region is populated just fine from the URL. No problems there. The problem is that I can’t figure out how to access the data from the row I’m trying to delete in order to populate Field1 and Field2, effectively completing the query. Can anyone help? Thanks.

For Delete I have the following code:

jQuery.jgrid.del = {
            caption: "Delete Item",
            msg: "Delete record?",
            bSubmit: "Delete",
            bCancel: "Cancel",
            beforeSubmit: function(postdata, formid) { 
                var rowid = $("#mygrid").getGridParam('selrow');
                $("#mygrid").jqGrid('saveRow',rowid,false,'clientArray');
                var rowvalues = $("#mygrid").getRowData(rowid);
                return [true, ""]
            }

When I display the rowid in an alert message box, I get “null” back, so maybe that’s where my problem stems from.

  • 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-11T01:52:02+00:00Added an answer on June 11, 2026 at 1:52 am

    You can either use delData with the properties field1 and field2 defined as functions or to use onclickSubmit or beforeSubmit in which you can dynamically modify the URL used in the DELETE operation or to use serializeDelData callback. The best way could depend on other options which you use (for example depends on mtype used for Delete operation). In the answer I included the references to other answers which shows all the ways in details.

    For example you can use

    onclickSubmit: function (options, rowid) {
        // we suppose that use don't use multiselect: true option
        // in the case rowid parameter if the string with the id of the
        // deleted row
    
        // we can get the data about the deleted row with respect of
        // getCell, getLocalRow or getRowData methods
        var rowData = $(this).jqGrid("getRowData", rowid);
    
        // now we can modify the URL used in the Delete operation
        options.url += "?" + $.param({
            field1: rowData.field1,
            field2: rowData.field2
        });
    
        return {}; // you can return additional data which will be sent to the server
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am Unable To Delete Image File From My Server Path It Gaves Error
I have tried many ways to achieve this biut unable to delete row from
I'm unable to delete my file, i have looked here but can't find the
Error: Unable to read data from the transport connection: A blocking operation was interrupted
I can successfully extract the data from the database however am having trouble now
Unable to delete [U_Family] column from table below : Table CREATE script: CREATE TABLE
I unable to delete the project from the workspace. Eclipse throws NPE and I
i was write the method to delete row....but, i don't know why, i can't
I'm trying to delete a file that another thread within my program has previously
I accessed the Data from sqlite file as NSMutableArray[model_Array] in which I have duplicates

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.