Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/unit-testing/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery mobile 移动设备上的JqGrid_Jquery Mobile_Jqgrid_Rhomobile - Fatal编程技术网

Jquery mobile 移动设备上的JqGrid

Jquery mobile 移动设备上的JqGrid,jquery-mobile,jqgrid,rhomobile,Jquery Mobile,Jqgrid,Rhomobile,我曾试图使用jqGrid进行移动设备开发,但无法获得与web视图相同的视图。寻呼机箭头和其他图像仅在鼠标悬停时显示 请让我知道,如果我必须做一些特殊的插件工作在移动设备上 我在让columnChooser工作时也遇到了问题。弹出窗口不会出现 谢谢 [更新] 请在下面找到我正在编写的函数 我包含的文件包括: jquery.mobile-1.0.min.css jqmobile-patch.css jquery-ui.css ui.jqgrid.css ui.multiselect.css jque

我曾试图使用jqGrid进行移动设备开发,但无法获得与web视图相同的视图。寻呼机箭头和其他图像仅在鼠标悬停时显示

请让我知道,如果我必须做一些特殊的插件工作在移动设备上

我在让columnChooser工作时也遇到了问题。弹出窗口不会出现

谢谢

[更新] 请在下面找到我正在编写的函数

我包含的文件包括:

  • jquery.mobile-1.0.min.css
  • jqmobile-patch.css
  • jquery-ui.css
  • ui.jqgrid.css
  • ui.multiselect.css
  • jquery-1.7.1.min.js
  • jquery-ui.min.js
  • ui.multiselect.js
  • grid.locale-en.js
  • jquery.jqGrid.min.js
  • 按照提供的顺序

    function buildGrid() {
    var grid = jQuery("#contactGrid");
    grid.jqGrid({
      url: '/public/json/contactsdata.json',
      mtype:'GET',
      datatype: 'json',
      headertitles: true,
        sortable: true,
      colNames:['ID','Name','Date of Birth',"Email","Marital Status"],
      colModel:[
        {name:'id', index:'id'},
        {name:'name',index:'name'},
        {name:'dob',index:'dob'},
        {name:'email',index:'email'},
        {name:'maritalstatus',index:'maritalstatus'}
      ],
        sortname: 'id',
        sortorder: 'asc',
        rowNum:5,
        rowList:[5,10,20],
      pager: '#contactPager',
      viewrecords: true,
      autowidth: true,
      shrinkToFit: true,
      loadonce:true,
      emptyrecords: "No Records to display",
      height: 'auto',
      width: '80%',
      caption: "Contact Details",
      ignoreCase: true,
      gridview: true
    
    });
    
        grid.jqGrid('navGrid', '#contactPager', {refreshstate: 'current', search:true,add: false, edit: false, del: false});
        grid.jqGrid('navButtonAdd', '#contactPager', {
                caption: "",
                buttonicon: "ui-icon-calculator",
                title: "Choose columns",
                onClickButton: function () {
                    $(this).jqGrid('columnChooser');
                }
            });
     };
    

    我解决了这个问题。问题在于文件的收纳顺序。我遵循的顺序是:

    <link rel="stylesheet" href="/public/jqmobile/jquery.mobile-1.0.min.css">
    <link rel="stylesheet" href="/public/css/jqmobile-patch.css">
    <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/themes/redmond/jquery-ui.css" />
    <link rel="stylesheet" type="text/css" href="http://www.ok-soft-gmbh.com/jqGrid/jquery.jqGrid-4.3.1/css/ui.jqgrid.css" />
    <link rel="stylesheet" type="text/css" href="http://www.ok-soft-gmbh.com/jqGrid/jquery.jqGrid-4.3.1/plugin/ui.multiselect.css" />
    
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="/public/jqmobile/jquery.mobile-1.0.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="/public/js/jqmobile-patch.js"></script>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script>
    <script type="text/javascript" src="http://www.ok-soft-gmbh.com/jqGrid/jquery.jqGrid-4.3.1/plugin/ui.multiselect.js"></script>
    <script type="text/javascript" src="http://www.ok-soft-gmbh.com/jqGrid/jquery.jqGrid-4.3.1/js/i18n/grid.locale-en.js"></script>
    <script type="text/javascript" src="http://www.ok-soft-gmbh.com/jqGrid/jquery.jqGrid-4.3.1/js/jquery.jqGrid.src.js"></script>
    

    我解决了这个问题。问题在于文件的收纳顺序。我遵循的顺序是:

    <link rel="stylesheet" href="/public/jqmobile/jquery.mobile-1.0.min.css">
    <link rel="stylesheet" href="/public/css/jqmobile-patch.css">
    <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/themes/redmond/jquery-ui.css" />
    <link rel="stylesheet" type="text/css" href="http://www.ok-soft-gmbh.com/jqGrid/jquery.jqGrid-4.3.1/css/ui.jqgrid.css" />
    <link rel="stylesheet" type="text/css" href="http://www.ok-soft-gmbh.com/jqGrid/jquery.jqGrid-4.3.1/plugin/ui.multiselect.css" />
    
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="/public/jqmobile/jquery.mobile-1.0.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="/public/js/jqmobile-patch.js"></script>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script>
    <script type="text/javascript" src="http://www.ok-soft-gmbh.com/jqGrid/jquery.jqGrid-4.3.1/plugin/ui.multiselect.js"></script>
    <script type="text/javascript" src="http://www.ok-soft-gmbh.com/jqGrid/jquery.jqGrid-4.3.1/js/i18n/grid.locale-en.js"></script>
    <script type="text/javascript" src="http://www.ok-soft-gmbh.com/jqGrid/jquery.jqGrid-4.3.1/js/jquery.jqGrid.src.js"></script>
    
    
    
    它是什么类型的移动设备,您使用的是什么浏览器?我正在为我的公司评估移动设备。现在,我正在开发基于Android的摩托罗拉ET1。即使我尝试为iPad进行模拟,它也不起作用。我在iPad上使用jqGrid没有任何问题…@SukeshKumar:您使用的HTML方言可能也很重要。你应该尝试使用HTML5。无论如何,您都应该验证一些
    Hi@Oleg:是的,相同的示例在非移动计算机上工作。我想你没有把“[答案]”作为链接。请帮忙。这是什么样的移动设备,你用的是什么浏览器?我正在为我的公司评估移动设备。现在,我正在开发基于Android的摩托罗拉ET1。即使我尝试为iPad进行模拟,它也不起作用。我在iPad上使用jqGrid没有任何问题…@SukeshKumar:您使用的HTML方言可能也很重要。你应该尝试使用HTML5。无论如何,您都应该验证一些
    Hi@Oleg:是的,相同的示例在非移动计算机上工作。我想你没有把“[答案]”作为链接。请帮忙。