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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:20:19+00:00 2026-06-16T03:20:19+00:00

I was copying over my mvc 3 code to an mvc 4 application and

  • 0

I was copying over my mvc 3 code to an mvc 4 application and i noticed my jqgrid section of code was no longer being rendered properly. As you can tell in the image, the pager is missing, and the column names are far too large than the default jqgrid settings. Any idea as to how to fix this problem?

Image

odd jqgrid rendering
Code

<link href="@Url.Content("~/Content/jqgrid/ui.jqgrid.css")" rel="stylesheet" typpe="text/css" /> 

<script src="@Url.Content("~/Scripts/jquery-1.8.3.min.js")" type="text/javascript"></script>     
<script src="@Url.Content("~/Scripts/jquery-ui-1.9.2.cupertino.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/grid.locale-en.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.jqGrid.min.js")" type="text/javascript"></script>

<script type="text/javascript">
    jQuery(document).ready(function () {
        var id = 0;
        jQuery("#tblUsers").jqGrid({
            url: '/Configuration/GetUsers/',
            datatype: 'json',
            mtype: 'POST',
            colNames: ['User Name', 'Role'],
            colModel: [
                { name: 'User Name', index: 'User Name', width: 90, align: 'left' },
                { name: 'Role', index: 'Role', width: 80, align: 'left' }],
            //pager: jQuery('#pager'),
            width: 700,
            height: 200,
            rowNum: 20,
            rowList: [5, 10, 20, 50],
            sortname: 'User Name',
            sortorder: "desc",
            viewrecords: true,
            imgpath: '',
            caption: 'Users'
        });

        jQuery("#tblUsers").jqGrid('navGrid', '#pager',
        {
            editfunc: function (rowid) {
                //$('#dialogEdit').data('id', rowid);
                //$('#dialogEdit').dialog('open');
            },
            addfunc: function () {
                //$('#dialog').dialog('open');
            },
            delfunc: function (rowid) {
                //$('#dialogDelete').data('id', rowid);
                //$('#dialogDelete').dialog('open');
            }
        }, //options
        {}, // edit options 
        {}, // add options 
        {}, // del options
        {} // search options
        );
    });
</script>

<table id="tblUsers" class="scroll" cellpadding="0" cellspacing="0"></table>
<div id="pager" class="scroll" style="text-align:center;"></div>
  • 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-16T03:20:20+00:00Added an answer on June 16, 2026 at 3:20 am

    You are likely missing a CSS file that is required for this to work. A few things to check.

    • Did you copy the theme & other associated css files over?
    • ASP.NET MVC 4 uses a different bundling process if you were bundling things together in 3.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am copying code from website matplotlib and pasting into the Vim editor in
I upgraded an Orchard 1.4 site with Orchard 1.6, by copying over the site.
I'm building an ASP.NET MVC application and I'm trying to deploy it on a
What is the best way to upgrade / patch a .Net MVC application. Ideally
I have a weird problem I don't understand. I am copying over some C
I am putting together a new site from an existing site and copying over
I just tried to duplicate an existing iOS project. After copying over all the
I have a form with a textarea where users can write some code. I'm
I've accidentally overwritten an old branch by copying trunk over it using 'svn copy'.
Copying Zenf Framework everywhere is a nightmare, so I had an idea, thas deployment

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.