0

网格加载,但添加/编辑/搜索等图标不出现。当我将鼠标悬停在图标应该在的位置上时,我可以看到图标的名称(但图标不显示)。有没有人有类似的问题?请帮忙。

bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
     "~/Scripts/jquery2.0.2.min.js", 
     "~/Scripts/jquery-ui-1.10.3.min.js",
     "~/Scripts/jquery.validate.js", 
     "~/Scripts/i18n/grid.locale-en.js",
     "~/Scripts/jquery.jqGrid.min.js",
     "~/Scripts/modernizr-2.6.2.min.js" ));

bundles.Add(new StyleBundle("~/Content/css").Include( 
     "~/Content/themes/Style.css",           
     "~/Content/jqGrid/jquery-ui-jqgrid.css",    
     "~/Content/themes/hot-sneaks/jquery-ui-1.10.3.custom.css" )); 

BundleTable.EnableOptimizations = true;

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 },
            { 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 },
        ],
        rowNum: 10,
        rowList: [10, 20, 30],
        pager: '#pager2',
        sortname: 'UserId',
        viewrecords: true,
        sortorder: "desc",
        caption: "JSON Example"
    }).navGrid('#pager2', { edit: true, add: true, del: false });    

}
4

0 回答 0