Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
XML Datasource Record Count bug ..
27/08/2009
14:34
Avatar
Paul
Guest
Guests

This works for JSON, not XML.  Took the JSON code and duplicated under the XML area:

--- grid.base.js    2009-08-17 14:22:34.174493400 -0400
+++ /c/Java/jqgrid-3.5.2/src/grid.base.js    2009-08-14 02:55:20.000000000 -0400
@@ -421,9 +422,8 @@
             ts.p.totaltime = new Date() - startReq;
             if(ir>0) {ts.grid.cols = ts.rows[0].cells;if(ts.p.records===0)ts.p.records=gl;}
             rowData =null;
-              if(!ts.p.treeGrid && !ts.p.scroll) {ts.grid.bDiv.scrollTop = 0;}
-              ts.p.reccount=ir;
-              ts.p.treeANode = -1;
+              if(!ts.p.treeGrid && !ts.p.scroll) {ts.grid.bDiv.scrollTop = 0; ts.p.reccount=ir;}
+            ts.p.treeANode = -1;
             if(ts.p.userDataOnFooter) $(ts).footerData("set",ts.p.userData,true);
             updatepager(false);
         },

30/08/2009
11:04
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Should check this. Thanks.

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.

05/09/2009
19:57
Avatar
Kuzguni
Guest
Guests

There is a bug;

userDataOnFooter is working with json but not XML

08/09/2009
07:19
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello Kuzguni,

Could you please provide test case - link or code?

Also please check how you format your user data when you use xml. Please read the docs - chapter Retrieving Data

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.

14/09/2009
04:53
Avatar
Kuzguni
Guest
Guests

Problem is solved. My fault was; 

I write value on xml result for "index" value. 

Right one use it with "name"

colModel:[ {name:'MyAmount',index:'amount', width:80, align:"right", formatter: 'number'}, {name:'total',index:'total', width:80,align:"right", formatter: 'number'} ]

My Wrong:

<userdata name="amount">123</userdata> 

Right:

<userdata name="MyAmount">123</userdata> 

Thanks for your interest.

Cool

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
93 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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information