Forum
23:50
01/10/2009
Hi all, I'm using rownumbers:true and having negative row numbers. Here's how to reproduce it:
- Create an empty grid (no data) with rownumbers:true
- Add a record and trigger reloadGrid
It starts with (rowNum - 1), so if I set rowNum to 10, it will start with -9. The next added record would be -8, then -7, and so on.
Anyone have an idea for a quick fix?
Thanks!
06:59
Moderators
30/10/2007
Hello,
Could not reproduce.
In my tests I have the following:
1. Set jqGrid with datatype local, rownumbers to true .
2. Add record with addRowData and the trigger the grid.
All seems to work ok.
By the way which version is used?
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.
20:12
01/10/2009
Tony, thank you so much for taking the time to test this. I am using jqGrid 3.5.3 (all modules) + jQuery 1.3.2.
I use a remote data source (Oracle) and I don't use addRowData.
I will recheck my installation again, hope this is only my case.
Here's a screenshot of my issue:
P.S. I have found the negative numbers respond to the rowNum. So if you set rowNum to 100, you'll get -99, -98, -97, and so on.
04:35
Moderators
30/10/2007
Hello,
The most problem here is that from the first request you return page:0. Please check what you return from server
Also if you post the response I will check it.
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:47
01/10/2009
Wow, thank you so much Tony, that is exactly my problem.
Here is the response from the initial request:
<rows>
<page>0</page>
<total>0</total>
<records>0</records>
</rows>
I thought it is alright to return page:0. Now I know better. So sorry to have troubled you so much Tony, thanks again!
Most Users Ever Online: 715
Currently Online:
38 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