Forum


19:03

04/10/2011

Hello!
I load the config + data from a xml file.
and that works perfect on latest jqgrid 3.* version 🙂
but when i try to update to 4.1.2
then is thed grid empty.
my xml ...
$(function() { $("#list").jqGrid('jqGridImport', { imptype: "xml", impurl: "/cgi-bin/main_server.cgi?view_name=invheader" }); });
<?xml version="1.0" encoding="ISO-8859-15"?>
<roots>
<rows>
<page>1</page>
<total>33</total>
<records>645</records>
<userdata>master:userData</userdata>
<row>
<amount>0.00</amount>
<invid>1</invid>
<client_id><![CDATA[]]></client_id>
<tax>0.00</tax>
<invdate>0000-00-00</invdate>
<total>0.00</total>
<note><![CDATA[note ^M]]></note>
</row>
<row>
<amount>103.00</amount>
<invid>2</invid>
<client_id>2045</client_id>
<tax>45.00</tax>
<invdate>2001-01-10</invdate>
<total>149.00</total>
<note>This is record 1^M</note>
</row>
<row>
<amount>104.00</amount>
<invid>3</invid>
<client_id>2046</client_id>
<tax>46.00</tax>
<invdate>2001-02-10</invdate>
<total>151.00</total>
<note>This is record 2^M</note>
</row>
<row>
<amount>105.00</amount>
<invid>4</invid>
<client_id>2047</client_id>
<tax>47.00</tax>
<invdate>2001-03-10</invdate>
<total>153.00</total>
<note>This is record 3^M</note>
</row>
<row>
<amount>106.00</amount>
<invid>5</invid>
<client_id>2048</client_id>
<tax>48.00</tax>
<invdate>2001-04-10</invdate>
<total>155.00</total>
<note>This is record 4^M</note>
</row>
<row>
<amount>107.00</amount>
<invid>6</invid>
<client_id>2049</client_id>
<tax>49.00</tax>
<invdate>2001-05-10</invdate>
<total>157.00</total>
<note>This is record 5^M</note>
</row>
<row>
<amount>108.00</amount>
<invid>7</invid>
<client_id>2050</client_id>
<tax>50.00</tax>
<invdate>2001-06-10</invdate>
<total>159.00</total>
<note>This is record 6^M</note>
</row>
<row>
<amount>109.00</amount>
<invid>8</invid>
<client_id>2051</client_id>
<tax>51.00</tax>
<invdate>2001-07-10</invdate>
<total>161.00</total>
<note>This is record 7^M</note>
</row>
<row>
<amount>110.00</amount>
<invid>9</invid>
<client_id>2052</client_id>
<tax>52.00</tax>
<invdate>2001-08-10</invdate>
<total>163.00</total>
<note>This is record 8^M</note>
</row>
<row>
<amount>111.00</amount>
<invid>10</invid>
<client_id>2053</client_id>
<tax>53.00</tax>
<invdate>2001-09-10</invdate>
<total>165.00</total>
<note>This is record 9^M</note>
</row>
<row>
<amount>112.00</amount>
<invid>11</invid>
<client_id>2054</client_id>
<tax>54.00</tax>
<invdate>2001-10-10</invdate>
<total>167.00</total>
<note>This is record 10^M</note>
</row>
<row>
<amount>113.00</amount>
<invid>12</invid>
<client_id>2055</client_id>
<tax>55.00</tax>
<invdate>2001-11-10</invdate>
<total>169.00</total>
<note>This is record 11^M</note>
</row>
</rows>
<grid>
<colModel>
<name>invid</name>
<index>invid</index>
</colModel>
<colModel>
<name>invdate</name>
<index>invdate</index>
</colModel>
<colModel>
<name>client_id</name>
<index>client_id</index>
</colModel>
<colModel>
<name>amount</name>
<index>amount</index>
</colModel>
<colModel>
<name>tax</name>
<index>tax</index>
</colModel>
<colModel>
<name>total</name>
<index>total</index>
</colModel>
<colModel>
<name>note</name>
<index>note</index>
</colModel>
<colNames>invid</colNames>
<colNames>invdate</colNames>
<colNames>client_id</colNames>
<colNames>amount</colNames>
<colNames>tax</colNames>
<colNames>total</colNames>
<colNames>note</colNames>
<xmlReader>
<root>rows</root>
<row>row</row>
<page>rows>page</page>
<total>rows>total</total>
<records>rows>records</records>
<repeatitems>false</repeatitems>
<userdata>userdata</userdata>
<cell>cell</cell>
<id>invid</id>
<subgrid>
<repeatitems>false</repeatitems>
<id>invid</id>
</subgrid>
</xmlReader>
<postdata>
<view_name>invheader</view_name>
</postdata>
<url>http://localhost?view_name=inv....." target="_blank" target="_blank">http://localhost?view_name=inv.....t;/url>
<autowidth>true</autowidth>
<rowNum>10</rowNum>
<pager>#pager</pager>
<datatype>xml</datatype>
<mtype>GET</mtype>
<altRows>true</altRows>
<loadui>true</loadui>
<caption>Test Data</caption>
<scroll>false</scroll>
<ondblClickRow>function(rowid){id = rowid; reload_selected('form_untersuchung.cgi',id) }</ondblClickRow>
<toolbar>true</toolbar>
<toolbar>botton</toolbar>
<hiddengrid>false</hiddengrid>
<viewrecords>true</viewrecords>
</grid>
</roots>
Any Hints ?
Thanks a lot
Most Users Ever Online: 715
Currently Online:
43 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