Forum



23:21

29/11/2011

Hi everybody,
After loading the data by my sql request in my script.php file, I do some calculations in order to create some new columns with new data like increase, gap, ...
After I did my calculations, I write the xml data and I add a line to add the new cells for my new columns.
When I load the grid, everything is ok. My new data are in the grid.
If I sort the data loaded from the database, it's ok. But when I try to sort a colum with my new data, calculated and not loaded from DB, it doesn't work and the grid becomes empty.
I can retrieve the grid with data if I click on the title of a column which has data loaded from the DB.
Any idea ?
thanks 🙂
Bastien
11:25

29/11/2011

Hi,
I think I understand the problem. When there is a click to sort a column, a new search is launched. For this new search, the variable $sidx in my script file takes the value of the index of the column the user clicks to sort.
So, as my column doesn't exist in my DB (because it's calculated by myself), the SQL doesn't work.
It seems so that it's not possible to sort calculated datas which don't exist in the DB.
Is it the same when grid is in the new mode "grid view mode", appeared in version 3.5 ?
I think yes... so what I want to do is just impossible with jqgrid ? Anybody had to treat a similar case ?
thanks for answers
Bastien
Most Users Ever Online: 715
Currently Online:
58 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