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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:48:39+00:00 2026-06-11T19:48:39+00:00

I have a jqGrid table, the same one from this problem , which I

  • 0

I have a jqGrid table, the same one from this problem, which I load with information from the server, but I store locally, so I have the option datatype set to ‘local’.

I also set the delete button to use this function. It has to delete the row from database and from the grid.

var grid = $('#grid');

    grid.jqGrid('navButtonAdd', '#pager', 
    {
        caption: "",
        buttonicon: "ui-icon-trash",
        position: "first",
        title: "Delete",
        cursor: "pointer",
        id: 'del_list',

        onClickButton: function del(event) {
            var rowID = grid.jqGrid('getGridParam', 'selrow');
            if (rowID === null) {
                $('<div title="Error"><p>Error</p></div>').dialog({
                    modal: true,
                    width: 350,
                    buttons: {Aceptar: function () {
                        $(this).dialog("close");
                    }},
                    dialogClass: "ui-jqdialog"
                });
            }
            else {
                grid.jqGrid('delGridRow', rowID, 
                {
                    width: 400,
                    delicon: [true, "left", "ui-icon-cancel"],
                    cancelicon: [true, "left", "ui-icon-close"],
                    beforeShowForm: function (form) {
                        SetFormsSize('#delmodtGrid');
                    },
                    caption: "Delete",
                    msg: "asdasdasd",
                    onclickSubmit: function (params, postdata) { 

                        var code = parseInt(grid.find('tr:eq(' + rowID + ')').find('td:eq(0)').text());
                        var ver = parseInt(grid.find('tr:eq(' + rowID + ')').find('td:eq(2)').text());

                        var add_data = {ProjectID: code, VersionID: ver};
                        return add_data;
                    },
                    afterComplete: function (response, postdata) {
                        if (response.responseText === "Success") {
                            $('<div title=""><p>asdasdas</p></div>').dialog({
                                modal: true,
                                width: 400,
                                buttons: {Aceptar: function () {
                                    $(this).dialog("close");
                                }},
                                dialogClass: "ui-jqdialog"
                            });
                        }
                        else {
                            $('<div title="Error: ' + response.responseText + '"><p>asdasdasd</p></div>').dialog({
                                modal: true,
                                width: 400,
                                buttons: {Aceptar: function () {
                                    $(this).dialog("close");
                                }},
                                dialogClass: "ui-jqdialog"
                            });
                        }                    
                    }
                });
            }            
        }
    });

I have an action server-side that handles the deletion in the database. I have a try-catch sentence for it, and it doesn’t throw any exceptions. With Firebug, I get the POST request is successful, along with the response (this I got adding an afterSubmit option function and checking postdata). So the problem, I belive, lies with the jqGrid’s settings.

After it goes through the server-side code (and, when I set it, after the afterSubmit event is fired), this is the error I get (translated from Spanish):

Runtime error Microsoft JScript: Object doesn’t accept property or
method ‘split’

It affects jquery.jqGrid.min.js at line 331, in the sentences

if(d[e.p.id].reloadAfterSubmit&&e.p.datatype!="local")
   a(e).trigger("reloadGrid");
else{
   var A=[];
   A=H.split(",");
   ...
}

from the complete function. The part that generates the error is the second sentence of the else clause.

  • 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-11T19:48:40+00:00Added an answer on June 11, 2026 at 7:48 pm

    Nevermind, the solution was here: jqgrid error when deleting row, that directs to the answer here: http://www.trirand.com/blog/?page_id=393/bugs/4-2-0-g-split-is-not-a-function-error/

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

Sidebar

Related Questions

in my jqgrid i have field in a table which represents the id and
I have this mysql tables I want to display with jqgrid. The problem appears
I have a JQGrid plugin in my website, the table is loading OK, but
I have 1000 records in a table which holds position field starting from 1
I have rows from a table in jqGrid. I manipulate the behaviour of cellEdit
I have a table (jqGrid) inside one of the jquery ui tabs (the first
I have a jqgrid where the database table has a few thousand rows, but
Is there any way to hide a column in a jqGrid table, but have
I have a jqGrid where I get data at once from server (java) in
I have the below jqgrid image, from which I would like to remove the

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.