Forum

July 12th, 2025
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
Carriage Returns lost in edit
17/02/2011
17:10
Avatar
thebiggerd
New Member
Members
Forum Posts: 2
Member Since:
22/12/2010
sp_UserOfflineSmall Offline

I have a grid that I use for notes, some of which have carriage returns.  I can get the grid to display them correctly, however when I go into edit mode, I lose all the carriage returns.  I even tried to have a hidden column with the original text which I set back in the unformat function, and that does not work either. 

I tried to be sneaky, as something is obviously removing markup in the edit box.  So, I replace the original text carriage returns with "###~~" and then replaced that with "/r/n" in the unformatter.  That caused the text box in edit mode to add a "<P>" tag instead of just leaving the carriage return. 

What can I do to have the original text displayed without any changes (i.e. leaving the carriage returns intact)?

27/06/2011
12:29
Avatar
ivanchain
Member
Members
Forum Posts: 55
Member Since:
11/03/2010
sp_UserOfflineSmall Offline

the same problem. the jqgrid edit box will eat the "/r/n".

I have checked the data in the sql server. IT HAS /r/n. but when we get it out into jqgrid and show it in a textbox in the editform, the  carriage returns are all gone.

yours,

ivan

27/06/2011
12:51
Avatar
ivanchain
Member
Members
Forum Posts: 55
Member Since:
11/03/2010
sp_UserOfflineSmall Offline

I know what happened.

the data in the sql server contains \r\n. but the jqgrid get it out and change to only \n. And it can't show the

 carriage returns based by \n only ( in IE).

So that's why it seems that the edit mode EAT the carriage returns.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 994

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