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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:43:14+00:00 2026-05-24T07:43:14+00:00

I have a jqGrid (4.1.1) using a simple subgrid. When a record is plus-ed

  • 0

I have a jqGrid (4.1.1) using a simple subgrid. When a record is plus-ed out to view the subgrid, a loadui different from my normal one pops up.

My current configuration is to use loadui: none, and on the beforeRequest event I show my own loader.

If I use my custom one on the subGridBeforeExpand event, it shows my message as well as the default message. I also don’t see where I would hide my div when loading is complete. subGridRowExpanded doesn’t seem to be the right place.

In short:

  1. Is there a jqGrid setting to hide the subgrid loadui, or do I have to roll my own javascript to hide it?
  2. Which events can I hook into to make sure the subgrid is loaded so I can close my loader?

Thanks in advance!

  • 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-24T07:43:15+00:00Added an answer on May 24, 2026 at 7:43 am

    If you look in the code of the subgrid you could find here the place where the the loading div will be displayed just as

    $("#load_"+ts.p.id).show();
    

    on the other side the code to show the standard (main) grid looks as the following (see here):

    beginReq = function() {
        ts.grid.hDiv.loading = true;
        if(ts.p.hiddengrid) { return;}
        switch(ts.p.loadui) {
            case "disable":
                break;
            case "enable":
                $("#load_"+$.jgrid.jqID(ts.p.id)).show();
                break;
            case "block":
                $("#lui_"+$.jgrid.jqID(ts.p.id)).show();
                $("#load_"+$.jgrid.jqID(ts.p.id)).show();
                break;
        }
    }
    

    So you can see that the setting loadui: "disable" will be used only in the main grid. How you can see from the code above any value of loadui other as "enable" or "block" (like unknown “none” value which you use) will be interpret as the loadui: "disable".

    In my view it is a bug in the subgrid.

    As the workaround I suggest you just remove the loading div after creating of jqGrid. If the table element of your grid has id="list" for example, then the next line:

    $("div#load_list").remove();
    

    will just delete the div and you will never see it in both main grid and subgrid.

    UPDATED based on the comments: OK! Now I understand your problem. I though before that you used datatype: 'local'. In case of the usage some remote datatype and blockUI plugin you can do the following. The ajax call used by jqGrid for the subgrid currently you can see here. It uses complete event, so the success and error events of the jQuery.ajax are free now. So you can use the events to call .unblock() or $.unblockUI() methods which will close the loading overlay. You can use ajaxSubgridOptions parameter of the jqGrid

    $("#list").jqGrid({
        // options of grid of subgrid ...
        ajaxSubgridOptions {
            success: function () {
                $.unblockUI(); // or $("#list").unblock();
            },
            error: function () {
                $.unblockUI(); // or $("#list").unblock();
            }
        }
    );
    

    If it’s not solve your problem you should include in your question the code fragment which explains how you use blockUI plugin and I will modify the code by inserting the calls of unblocking methods.

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

Sidebar

Related Questions

I am using jqgrid and have simple searching enabled. I am wondering if there
Greetings, I have a problem using jqgrid and jquery tab (I am coding in
I have a asp.net webforms page in which I'm using the jqGrid component. The
I have a project in ASP.NET MVC1 using VB.NET controlers and JqGrid. it works
I have tried to figure out how to disable the header for a jqGrid,
I have issue wuth Firefox not displaying style text-decoration: line-through. I am using jqGrid
I have this sample MVC project using jQuery grid. There is only one problem
I'm using jqGrid for a JIRA plugin and have included the jquery and jqgrid
i have a asp.net project and its using jqgrid as the javascript grid. How
I have jqgrid and in that I have one custom navigation button to export

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.