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
Newbie Question: Is there a htmlDecode Example???
17/09/2010
06:49
Avatar
Trober
Member
Members
Forum Posts: 21
Member Since:
14/09/2010
sp_UserOfflineSmall Offline

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?   Embarassed     Maybe something is being missed by me in doc on event to use??? 

Thanks in advance for any help.

17/09/2010
15:42
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

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/09/2010
17:01
Avatar
Trober
Member
Members
Forum Posts: 21
Member Since:
14/09/2010
sp_UserOfflineSmall Offline

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/09/2010
17:04
Avatar
Trober
Member
Members
Forum Posts: 21
Member Since:
14/09/2010
sp_UserOfflineSmall Offline

To make clear, loadComplete - is - called other times, when refresh grid.  But, not when pressing ENTER for adding new row.

So we think we have loadComplete coded correct.

17/09/2010
17:23
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

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

17/09/2010
23:20
Avatar
Trober
Member
Members
Forum Posts: 21
Member Since:
14/09/2010
sp_UserOfflineSmall Offline

Thank you, Oleg.  Sorry to fail to mention inline editing.  We will try that and post to close this for the community sake.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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