Categories | Question details Back To List | ||
Grid Pagination, xml configuration I generate xml with both configuration data and 'data' data: <?xml version="1.0" encoding="utf-8" ?><rows pos="0" total_count="2000"><head><column id="regDate" width ="*" type="ro" color="" sort="str" align="center" label="Data wprowadzenia " >Data wprowadzenia </column > <column id="deliverType" width="*" type="ro" color="" sort="str" align="center" label="Doręczono" >Dor ęczono</column> <column id="collector" width="*" type="ro" color="" sort="str" align="center" label="Inkasent" >Inkasent </column> <column id="localName" width="*" type="ro" color="" sort="str" align="center" label="Nazwa lokalu" >Nazwa lokalu</column> <column id="zip" width="*" type="ro" color="" sort="str" align="center" label="Kod pocztowy" >Kod pocztowy </column> <column id="city" width="*" type="ro" color="" sort="str" align="center" label="Miejscowość" >Miejscowo ść</column> <column id="region" width="*" type="ro" color="" sort="str" align="center" label="Województwo" >Wojew ództwo</column> <beforeInit> <call command="enablePaging"> <param>true</param><param>10</param><param>3</param><param>pagingArea</param><param>true</param ><param>recinfoArea</param> </call> </beforeInit> <afterInit> <call command="attachHeader"> <param>#text_filter,#text_filter,#text_filter</param> </call> <call command="setPagingSkin"> <param>bricks</param> </call> </afterInit> <settings ><colwidth >pc</colwidth> </settings> </head> <row id="109200" ><cell >2008-07-08</cell> <cell >Pocztą</cell> <cell >999, Tymczasowy Tymczasowy</cell> <cell >Bar Jaron Bogumiła Barańska</cell> <cell >26-600</cell> <cell >Radom</cell> <cell >mazowieckie</cell> </row> <row id="109193" ><cell >2008-07-08</cell> <cell >Pocztą</cell> <cell >109, Marek Szałkowski</cell> <cell >Sklep Spożywczy, Iza Czajkowska</cell> <cell >09-210</cell> <cell >Drobin</cell> <cell >mazowieckie</cell> </row> <row id="109191" ><cell >2008-07-08</cell> <cell >Pocztą</cell> <cell >999, Tymczasowy Tymczasowy</cell> <cell >Katarzyna PPHU Katarzyna Rozmanowska</cell> <cell >09-520</cell> <cell >Łąck</cell> <cell >mazowieckie</cell> </row> <row id="109187" ><cell >2008-07-08</cell> <cell >Pocztą</cell> <cell >12, Anna Drannik</cell> <cell >Sklep Spożywczo-Przemysłowy, Zygmunt E. Gigielewicz</cell> <cell >11-220</cell> <cell >Górowo Iławeckie</cell> <cell >warmińsko-mazurskie</cell> </row> <row id="109184" ><cell >2008-07-08</cell> <cell >Pocztą</cell> <cell >12, Anna Drannik</cell> <cell >Sklep Spożywczo-Przemysłowy,Leszek Cichosz</cell> <cell >11-200</cell> <cell >Kinkajmy</cell> <cell >warmińsko-mazurskie</cell> </row> <row id="109181" ><cell >2008-07-08</cell> <cell >Pocztą</cell> <cell >12, Anna Drannik</cell> <cell >Bar "Sandra", Lucyna Lewińska</cell> <cell >11-220</cell> <cell >Górowo Iławeckie</cell> <cell >warmińsko-mazurskie</cell> </row> <row id="109175" ><cell >2008-07-08</cell> <cell >Pocztą</cell> <cell >73, Andrzej Meler</cell> <cell >Bar "Ramirez", Sławomir Marczewski</cell> <cell >87-600</cell> <cell >Lipno</cell> <cell >kujawsko-pomorskie</cell> </row> <row id="109172" ><cell >2008-07-08</cell> <cell >Pocztą</cell> <cell >999, Tymczasowy Tymczasowy</cell> <cell >Katarzyna PPHU Katarzyna Rozmanowska</cell> <cell >09-402</cell> <cell >Płock</cell> <cell >mazowieckie</cell> </row> <row id="109166" ><cell >2008-07-08</cell> <cell >Pocztą</cell> <cell >999, Tymczasowy Tymczasowy</cell> <cell >PHU Fokus Katarzyna Kania</cell> <cell >09-400</cell> <cell >Płock</cell> <cell >mazowieckie</cell> </row> <row id="109162" ><cell >2008-07-08</cell> <cell >Pocztą</cell> <cell >999, Tymczasowy Tymczasowy</cell> <cell >Mega-Art Artur Frontczak</cell> <cell >09-402</cell> <cell >Płock</cell> <cell >mazowieckie</cell> </row> </rows> (its parsable) but when i load page i got this error: this.obj.rows[0] has no properties [Break on this error] _reset_view:function(skip){var tb = this.obj.rows[0].parentNode;var tr = tb.rem... Any idea what's wrong? Answer posted by Support on Aug 04, 2008 05:31 There are two possible reasons of issue. a) if you are not using dyn. loading of data the total_count parameter must be equal to the count of rows in XML , or just skiped. Currently it triggers dyn. loading, becuase count of rows in XML is smaller than expected limit. b) if you are using dyn. loading - only first chunk of XML must contains head section ( the head section must be sent only when posStart is equal to 0, is all other cases only data part of XML must be sent ) |