Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby-on-rails-4/2.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
Internet explorer JQ小部件IE问题_Internet Explorer_Jqxgrid_Jqwidget - Fatal编程技术网

Internet explorer JQ小部件IE问题

Internet explorer JQ小部件IE问题,internet-explorer,jqxgrid,jqwidget,Internet Explorer,Jqxgrid,Jqwidget,我在jqx网格中实现了一个下拉init编辑器,它在Firefox和chrome中运行良好,但在InternetExplorer中我面临一个奇怪的问题。 当我转到第一页并尝试单击已实现下拉编辑器的列的任何单元格时,它会显示正确的下拉列表,但在第二页,当我尝试单击该列的任何单元格时,下拉列表变为空。我猜这是因为在InternetExplorer的第二页上没有调用init编辑器 我怎样才能修好它 问题在于事件选择而不是使用close,以及createeditor仅绑定一次: createeditor:

我在jqx网格中实现了一个下拉init编辑器,它在Firefox和chrome中运行良好,但在InternetExplorer中我面临一个奇怪的问题。 当我转到第一页并尝试单击已实现下拉编辑器的列的任何单元格时,它会显示正确的下拉列表,但在第二页,当我尝试单击该列的任何单元格时,下拉列表变为空。我猜这是因为在InternetExplorer的第二页上没有调用init编辑器

我怎样才能修好它


问题在于事件选择而不是使用close,以及createeditor仅绑定一次:

createeditor: function (row, value, editor) {   
  editor.jqxDropDownList({ source: dropdownListSource});

  editor.on('close', function(event) {                          
    var index = editor.jqxDropDownList('getSelectedIndex');
    var item = editor.jqxDropDownList('getSelectedItem');
    var resetType = item.label;
    var value = item.value;
  });
}       

嗨,谢谢你的回复,但我还是收到了同样的错误。当我直接进入第二页,点击PW重置字段下拉菜单变为空,这也只是在IEWell中,现在我只能在IE9上测试它,没问题,可能是特定的版本?
createeditor: function (row, value, editor) {   
  editor.jqxDropDownList({ source: dropdownListSource});

  editor.on('close', function(event) {                          
    var index = editor.jqxDropDownList('getSelectedIndex');
    var item = editor.jqxDropDownList('getSelectedItem');
    var resetType = item.label;
    var value = item.value;
  });
}