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
Negative row numbers
29/10/2009
23:50
Avatar
michael
Member
Members
Forum Posts: 12
Member Since:
01/10/2009
sp_UserOfflineSmall Offline

Hi all, I'm using rownumbers:true and having negative row numbers. Here's how to reproduce it:

  1. Create an empty grid (no data) with rownumbers:true
  2. 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!

30/10/2009
06:59
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

02/11/2009
20:12
Avatar
michael
Member
Members
Forum Posts: 12
Member Since:
01/10/2009
sp_UserOfflineSmall Offline

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:

Negative row numbers

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/11/2009
04:35
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

04/11/2009
05:47
Avatar
michael
Member
Members
Forum Posts: 12
Member Since:
01/10/2009
sp_UserOfflineSmall Offline

Wow, thank you so much Tony, that is exactly my problem.

Here is the response from the initial request:

<?xml version="1.0" encoding="utf-8" ?>
<rows>
    <page>0</page>
    <total>0</total>
    <records>0</records>
</rows>

I thought it is alright to return page:0. Now I know better. Embarassed So sorry to have troubled you so much Tony, thanks again!

Forum Timezone: Europe/Sofia

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.com

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information