- 注册时间
- 2013-2-23
- 最后登录
- 2015-1-22
- 阅读权限
- 10
- 积分
- 120
- 精华
- 0
- 帖子
- 28
|
本帖最后由 Awen 于 2013-8-5 14:27 编辑
factory 发表于 2013-7-4 14:39
我测试过了,是可以的
你的autoEscape="true"设置在什么上的?这个不是设置在grid上的,是设置在需要转义的 ...
我测试了,还是不行
datagrid程序为:
<div id="dgFRL" class="mini-datagrid" style="width:100%;height:400px;"
url="<%=request.getContextPath()%>/MDM/Country/country.txt" idField="countryID" sizeList="[20,30,50,100]" pageSize="10"
allowResize="true" showColumnsMenu="true" multiSelect="true" allowUnselect="true" allowAlternating="true">
<div property="columns">
<div type="checkcolumn"></div>
<div field="countryCode" width="120" headerAlign="center" allowSort="true" autoEscape="true">编码</div>
<div field="countryName" width="120" headerAlign="center" allowSort="true" autoEscape="true">名称</div>
<div field="SN" width="120" headerAlign="center" allowSort="true">排序序号</div>
</div>
</div>
数据为:
{"total":3,"data":[{"SN":3,"countryCode":"JP","countryID":9,"countryName":"C"},{"SN":2,"countryCode":"EN","countryID":8,"countryName":"A <<hr>"},{"SN":1,"countryCode":"CN","countryID":7,"countryName":"S"}]}
显示为:
|
|