Click here to Skip to main content
15,886,075 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am able to display the jqGrid but the icons that are supposed to be there (Add, Edit, Delete, Search, Refresh etc. ) do not show up in my grid. When I hover over the place where the icons are supposed to be, it displays the name for the respective actions but just the images do not show up. Any help or suggestions would be great. Thanks in advance.

This is the javascript code that I am using.

C#
function LoadAllUsers()
    {
        jQuery("#list2").jqGrid({
            url: privateserviceURL + "LoadAllUsers",

            datatype: 'json',
            //url access method type
            mtype: 'POST',
            //columns names
            colNames: ['UserId', 'First Name', 'Last Name', 'Email', 'Password', 'Phone'],
            colModel: [
                { name: 'UserId', index: 'UserId', width: 55, hidden: true },
                { name: 'First Name', index: 'FirstName', width: 90 },
                { name: 'Last Name', index: 'LastName', width: 90 },
                { name: 'Email', index: 'Email', width: 100 },
                { name: 'Password', index: 'Password', width: 90 },
                { name: 'Phone', index: 'Phone', width: 90 }
            ],
            hidegrid: false,
            width: 790,
            height: 300,
            rowNum: 10,
            rowList: [10, 20, 30],
            pager: jQuery('#pager2'),
            sortname: 'UserId',
            viewrecords: true,
            sortorder: "desc",
            caption: "JSON Example"
        }).navGrid('#pager2', { view: true, del: true, add: true, edit: true, search: true });
    }
Posted

it seems the icons are not displaying for jquery ui even though I have added all the required css and js files..
 
Share this answer
 
Had something to do with the order of jquery and ui js files that I had that was causing the problem. Fixed now.
 
Share this answer
 
If your beginner to MVC and JQGrid then pls refere my blog.
I have also created videos explaining it.
A simple demo on MVC Entity framework and JQGrid.

I guess it will be helpfull for you.

http://dotnetsourcedileep.blogspot.in/2014/06/test.html[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900