Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/flash/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
jqgrid组标题在IE 7/8中不显示符号和字符_Jqgrid_Jqgrid Asp.net - Fatal编程技术网

jqgrid组标题在IE 7/8中不显示符号和字符

jqgrid组标题在IE 7/8中不显示符号和字符,jqgrid,jqgrid-asp.net,Jqgrid,Jqgrid Asp.net,我使用jqgrid来显示其中的动态数据,我的sql存储过程返回一些数据作为“T&E”。我在组标题中显示此数据,我只能在组标题中看到“T”,其余数据在IE 7/8中被缩减。当我在Firefox中运行它时,它正确地显示为“T&E”。请告诉我这个问题的解决方法,如有任何帮助,我们将不胜感激 我尝试了autoencode属性将其设置为true,但它不起作用, 我在aspx文件中保留了编码utf-8的元标记字符。我在编辑时遇到了类似问题。这帮助我通过一些调整实现了我想要的 我的系统配置 用IE8赢得7分

我使用jqgrid来显示其中的动态数据,我的sql存储过程返回一些数据作为“T&E”。我在组标题中显示此数据,我只能在组标题中看到“T”,其余数据在IE 7/8中被缩减。当我在Firefox中运行它时,它正确地显示为“T&E”。请告诉我这个问题的解决方法,如有任何帮助,我们将不胜感激

我尝试了autoencode属性将其设置为true,但它不起作用,
我在aspx文件中保留了编码utf-8的元标记字符。

我在编辑时遇到了类似问题。这帮助我通过一些调整实现了我想要的

我的系统配置

用IE8赢得7分

编辑时,&后的文本丢失。如果我们有像“a&a”这样的文本,那么只有“a”会出现在网格中并最终被保存

自定义格式化程序是如何为我完成这项任务的

//In col Model 
//Assuming description is one of your column in the jqGrid
//Note the formatter , this is the custom formatter which does the magic for us in this case.
{ name: 'Description', index: 'Description', align: "center", sorttype: 'text', sortable: true, resizable: false, editable: editGrids, formatter: formatTextDisplay,unformat:unformatTextDisplay}

//Formatter code
var formatTextDisplay = function (cellval, opts, action) {
            if (cellval) {
                return $.jgrid.htmlEncode(cellval);
            };
            return "";
        }

//Un formatter code, in case you want to read through the text in its original state from the grid for processing in the javascript file.
var unformatTextDisplay = function (cellval, opts, action) {
            if (cellval) {
                return $.jgrid.htmlDecode(cellval);
            };
            return "";
        }