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
rownumbers + remapColumns the rowid become null
18/07/2011
11:44
Avatar
timeriver
Member
Members
Forum Posts: 6
Member Since:
15/07/2011
sp_UserOfflineSmall Offline

Hello

I am not sure for the bug has been report or this is not a bug.

I had tried many times if i use rownumbers: true + remapColumns, the rowid will become null.

But if i removed the remapColumns code, the rowid suddenly become the correct id.

Please check that, thanks.

20/07/2011
09:46
Avatar
timeriver
Member
Members
Forum Posts: 6
Member Since:
15/07/2011
sp_UserOfflineSmall Offline

Sorry,I had found the problem.

Because I didn't put the remapcolumns into jqgrid events,so the remapcolumn will do first before jqgrid had been loaded,so it will get null id.

But there is a new problem.

I need after save cell and reload,I had tried many event places but can't get I want.

If i put remapcolumn into one of the event,the permutation will remapcolumn again and again,and get wrong permutation.

20/07/2011
10:40
Avatar
timeriver
Member
Members
Forum Posts: 6
Member Since:
15/07/2011
sp_UserOfflineSmall Offline

Okey,I found the bug.

I set a flag value for just do remapcolumn once in the loadcomplete event, and the remapcolumn loop problem will get resloved.

And the id null bug is clear.

The Colmodel key position of permutation cannot be remap.

ex: the key position is 3 ,the oringnal permutation : [0,1,2,3,4,5,6,7]

after remap just once : [0,7,5,3,4,1,2,6], the id is correct, after reloadgrid the id is corrent.

after remap just once : [0,3,5,7,4,1,2,6], the id is correct, after reloadgrid the id is null.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
53 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