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_Related Related Topics sp_TopicIcon
Data disappear after sorting column
11/07/2012
14:53
Avatar
Euratom
New Member
Members
Forum Posts: 2
Member Since:
11/07/2012
sp_UserOfflineSmall Offline

Hello,

I have a problem when sorting data in jqgrid.
After filling it with local data, I edit a cell content and everything works (adding new value; updating / deleting existing one).

But when i sort a column (with 'sortGrid method'), the new values don't appear or cells retrieve their previous values. I thought first the data property of my grid was not upadted after editing a cell but i looked at this property on 'afterSaveCell' event and the values were there.

So, what am I doing wrong ?

This is my grid configuration (I remove event handlers) :

var _tableau_notes_base = {
        datatype : 'local',
        width : 400,
        height : '100%',
        caption : 'Notes',
        hidegrid : false,
        shrinkToFit : false,
        cmTemplate : {    sorttype: 'text', resizable : false, search : false, sortable : false,
                        title : false, width : 100, align : 'right', editable : true
                    },
        cellEdit : true,
        cellsubmit : 'remote',
        cellurl : './SaisieNotesWebAjax'}

Thx for any help.

For information only : I dynamically create the columns of my grid.

11/07/2012
15:27
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

You set:

cellsubmit : 'remote'

jqGrid think - I should save the value to the server and does not save the cell value in the local data.

In order to do this you will need to save the cell usung setCell or setRowData method after you submit the new value to the server.

Regards

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.

13/07/2012
09:29
Avatar
Euratom
New Member
Members
Forum Posts: 2
Member Since:
11/07/2012
sp_UserOfflineSmall Offline

tony said:

Hello,

You set:

cellsubmit : 'remote'

jqGrid think - I should save the value to the server and does not save the cell value in the local data.

In order to do this you will need to save the cell usung setCell or setRowData method after you submit the new value to the server.

Regards


Thank you for your reply. Unfortunaly i'm pretty busy these days (deadline's coming !) and the problem described above is not part of my priorities. I will try your suggestion asap.

Regards.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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