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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:36:20+00:00 2026-05-23T13:36:20+00:00

I have a jqGrid calling a controller action (returning JSON to jqGrid). When my

  • 0

I have a jqGrid calling a controller action (returning JSON to jqGrid).
When my grid gets populated, everything but the "table body" gets disabled, as if table body is shown via some modal window:
example

This is my js code to init the grid, and the html:

<head>
    <title>Insert</title>
    <link href="/Content/Site.css" rel="stylesheet" type="text/css" />
    <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.5.1.min.js" type="text/javascript"></script>
    <script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.8.1/jquery.validate.min.js" type="text/javascript"></script>
    <script src="http://ajax.aspnetcdn.com/ajax/mvc/3.0/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>
    <script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.14/jquery-ui.min.js" type="text/javascript"></script>
    <link type="text/css" rel="Stylesheet" href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.10/themes/ui-lightness/jquery-ui.css" />    
    <script src="/Scripts/EditorHookup.js" type="text/javascript"></script>    
    <script src="../../Scripts/grid.locale-en.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.jqGrid.min.js" type="text/javascript"></script>

   <script type="text/javascript">
      var gridimgpath = '/content/themes/base/images';
      var gridDataUrl = '/Home/JsonPosloviForDate';
      var jsonDate =  "\/Date(1309816800000)\/";      
      var date = eval(jsonDate.replace(/\/Date\((\d+)\)\//gi, "new Date($1)"));      
      $(function () {
         jQuery("#list").jqGrid({
            url: gridDataUrl + '?currDate=' + date.toJSON(),
            datatype: "json",
            mtype: 'GET',
            colNames: ['Šifra posla', 'Vrsta posla', 'Partner', 'Opis', 'Broj sati'],
            colModel: [
               { name: 'SifPosao', index: 'SifPosao', width: 50, align: 'left' },
               { name: 'kratVrstaPosao', index: 'kratVrstaPosao', width: 100, align: 'left' },
               { name: 'nazPartner', index: 'nazPartner', width: 100, align: 'left' },
               { name: 'opis', index: 'opis', width: 100, align: 'left' },
               { name: 'brSati', index: 'brSati', width: 100, align: 'left' },
                     ],
            rowNum: 20,
            rowList: [10, 20, 30],
            imgpath: gridimgpath,
            height: 'auto',
            width: '700',
            pager: jQuery('#pager'),
            sortname: 'SifPosao',
            viewrecords: true,
            sortorder: "desc",
            caption: "Poslovi"
         });
      }); 
   </script>
  
</head>
<body>
...    
<table id="list" class="scroll" cellpadding="0" cellspacing="0"></table>
<div id="pager" class="scroll" style="text-align:center;"></div>
...   
</body>
  • 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-23T13:36:20+00:00Added an answer on May 23, 2026 at 1:36 pm

    There are loadui parameter of jqGrid which allow you to manage how the grid will be blocked. You can try to use loadui:'disable' to verify that it is the problem which you has.

    Nevertheless the behavior which you describe seems me strange. jqGrid uses <div> as overlay and the div has additional class with the name ‘loading’. You should verify your CSS whether you have name conflict and use the same class name for another purpose.

    By the way I recommend you to review the jqGrid parameters and HTML markup which you use.

    • The parameter imgpath will be not used since version 3.5 of jqGrid (see here). Do you really use a retro version of jqGrid? If not you should remove imgpath.
    • You should remove property align: 'left' from colModel because the default value of align is already ‘left’ (see here)
    • You should remove class="scroll" cellpadding="0" cellspacing="0" from the <table id="list"> and class="scroll" style="text-align:center;" from the <div id="pager">. the settings was needed in “retro” versions of jqGrid, but not now (see here an HTML example).
    • It is better to use pager: '#pager' instead of pager: jQuery('#pager').
    • Instead of constructing url: gridDataUrl + '?currDate=' + date.toJSON() it is better to use two parameters: url: gridDataUrl and postData: {currDate: date.toJSON()} or event better postData: {currDate: function() { return date.toJSON(); } }. In case of usage of functions inside of postData the value of the property will be evaluated on every grid load/refresh (see here for more information). If you do want construct url manually like yoou currently do you need use encodeURIComponent or jQuery.param: url: gridDataUrl + '?currDate=' + encodeURIComponent(date.toJSON()) or url: gridDataUrl + '?' + jQuery.param({currDate:date.toJSON()}).
    • you should never use eval.

    UPDATED: I didn’t found in the example which you send the jqGrid CSS. If I replace the block with all CSS and JavaScript files with the following lines

    <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/themes/ui-lightness/jquery-ui.css" />
    <link rel="stylesheet" type="text/css" href="http://www.ok-soft-gmbh.com/jqGrid/jquery.jqGrid-4.1.1/css/ui.jqgrid.css" />
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/jquery-ui.min.js"></script>
    <script type="text/javascript" src="http://www.ok-soft-gmbh.com/jqGrid/jquery.jqGrid-4.1.1/js/i18n/grid.locale-en.js"></script>
    <script type="text/javascript" src="http://www.ok-soft-gmbh.com/jqGrid/jquery.jqGrid-4.1.1/js/jquery.jqGrid.min.js"></script>
    

    the described problem is not exist.

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

Sidebar

Related Questions

I have a jqgrid where the database table has a few thousand rows, but
I have a jqGrid populated with data, but I want to change how this
Suppose I have the following (shortened for simplicity): jQuery(#grid).jqGrid({ ... ondblClickRow: function() { //
I'm initializing the grid like so: $(#mainGrid).jqGrid({ url : g_MainGridUrl, datatype : 'json', height
I am using jqgrid 3.8. I have a grid which is having some editable
I have a JqGrid that a i want to populate with Json data that
I have this jqGrid: $(#report).jqGrid( { url: '/py/db?coll=report', datatype: 'json', height: 250, colNames: ['ACN',
I have a jqGrid displaying the data in the table correctly and on gridComplete
I have a JQGrid inside an accordion. When the grid has no posts it
We have a jqGrid that shows the search box above the grid at all

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.