Forum
Topic RSS
09:56
03/02/2009
OfflineHi,
I have the same problem.
I generate the XML response automatically and can not control the order of cell elements.
Need to identify each cell with the id defined in the colModel.
For example.
If I define the colModel as:
colModel: [
(name: "id", index: "id", width: 50),
(name: "name", index: "name", width: 50)
]
and the XML generated is:
<row id="1">
<cell> 1 </ cell>
<cell> Miguel </ cell>
</ Row>
everything works fine, but if it generates the XML as
<row id="1">
<cell> Miguel </ cell>
<cell> 1 </ cell>
</ Row>
the information shown is not correct.
I think the best solution would be to build the xml:
<row id="1">
<cell id="name"> Miguel </ cell>
<cell id="id"> 1 </ cell>
</ Row>
and that the grid is filled in correctly.
Is there any way to get it?
Thanks!
13:55
Moderators
30/10/2007
OfflineHello,
I think you should define xmlReader and response so that there is no matter where is the cell.
Please check this
http://www.trirand.com/jqgridw.....a#xml_data
from the beginning to the end.
If you configure the xmlReader with repeatitems set to false, then the order of the cells does not take into account
Best Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 994
Currently Online:
43 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66
Log In
Home