Forum



06:49

14/09/2010

I am trying to *decode* encoded fields from server.
autoencode option is easy enough (/jqgridwiki/doku.php?id=wiki:options&s[]=autoencode), just add to grid definition and encoded data shows up on server.
PROBLEM: HOW TO USE jgrid.htmlDecode (/jqgridwiki/doku.php?id=wiki:methods&s[]=htmldecode)
???
Where do we plug in jgrid.htmlDecode to the client-side grid code so we can decode text fields coming from the server that are encoded? Maybe something is being missed by me in doc on event to use???
Thanks in advance for any help.
15:42

10/08/2009

I would you recommend to use data parameter of loadComplete event handle. Inside of the function you can see exactly the data which are received from the server without any conversion.
Best regards
Oleg
17:01

14/09/2010

Oleg,
thank you for your reply.
Are you sure loadComplete is called after inline edit insert?
That was tried and it never was called, e.g.
...
},
loadComplete: function(data) {
alert('loadComplete: ' + data); <=== never displays after RETURN on inline edit of new row.
}
We are trying very hard hear, to read jqGrid code, but it's a big codebase and some hard to follow are understand.
Maybe we are forgetting something else needed to call loadComplete?
17:23

10/08/2009

Hello Trober,
in your question you wrote nothing about inline editing. You asked about the data send from the server. If you load the data from the server then the event function loadComplete will be called where you have access to the original data send from the server.
If you implement inline edit you call somethere the metheod editRow. You can use aftersavefunc function to see the original data send from the server.
Best regards
Oleg
Most Users Ever Online: 715
Currently Online:
62 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