Jqgrid不显示单行 [英] Jqgrid not displaying single row
本文介绍了Jqgrid不显示单行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
以下给定的字符串未显示在我的jqgrid上
The below given string is not getting displayed on my jqgrid
{"assignfix":{"sno":"1","fix":"Se2","templateName":"Restroom","profile":{"id":"11","name":"Restroom"}}}
但是当我插入这个
{"assignfix":[{"sno":"1","fix":"Sef2","templateName":"Restroom","profile":{"id":"11","name":"Restroom"}}]}
显示正确,仅是单行的问题.
It gets displayed properly , it is the problem with single row only.
推荐答案
您没有发布或
xmlReader
重要信息时所使用的jqGrid的定义.总的来说,我认为您是间接回答自己的问题的.如果assignfix
属性的值应为 array ,则如果该数组有一个元素或没有任何元素,则应将数据作为数组事件发布.它应该仍然是数组.
You don't posted the definition of jqGrid which you use where the jsonReader
or xmlReader
are important to know. In general I think you answered yourself indirectly on your question. If the value of assignfix
property should be array you should post the data as an array event if the array has one element or if it has no elements. It should be still array.
这篇关于Jqgrid不显示单行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文