Forum
00:35
21/09/2009
I have been using jGrid for months. Yesterday a user reported that the grid had gone haywire (rows not displayed, clicking on headers didn't show some rows,, would not sort in reverse chronological order).
I investigated and found that the user had a field with "The Golf & Country Club". The ampersand was the problem. If I replaced the & with and all was well.
The grid gets the information from a mysql database using php and xml.
So my question is how to allow amperands in text fields?
Thanks.
Bill
18:23
Moderators
30/10/2007
Hello,
I do not think that is a jqGrid problem. Check your code.
Especially for you I have update the demo so that some notes contain &
Best Regards
Tony
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.
21:07
21/09/2009
tony said:
Hello,
I do not think that is a jqGrid problem. Check your code.
Especially for you I have update the demo so that some notes contain &
Best Regards
Tony
Thanks Tony, I was hoping it was a JGrid issue since I knew you would solve the problem if it involved JGrid.
I'll look at my code.
Bill
19:55
13/01/2011
Hey Tony,
Using IE8 (or 7).
In your demos for the inline or the dialog box editing, try entering A&B (or any text that does not have a space around the "&" char). Anything after the "&" char is not displayed (but the tooltip does shows the actual and full text).
The above works fine in Firefox though. Please advise.
Thanks.
-Ranjan
23:45
04/02/2011
ranjandg said:
Hey Tony,
Using IE8 (or 7).
In your demos for the inline or the dialog box editing, try entering A&B (or any text that does not have a space around the "&" char). Anything after the "&" char is not displayed (but the tooltip does shows the actual and full text).
The above works fine in Firefox though. Please advise.
Thanks.
-Ranjan
I just encountered the problem as well on IE8. Firefox works though.
Thanks for your time!
18:50
Moderators
30/10/2007
Hello,
There is a option autoencode.
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.
16:50
28/01/2011
tony said:
Hello,
There is a option autoencode.
Regards
Tony,
This works great for 99.99% of the people. It breaks for me because I am using the first td of each row to insert two icons
where the user can click and edit the row. Since the autoencode function works in every column including the first one my HTML code to show the icons is also autoencode and it shows as text as opposed to html, see below. If you could skip the first column it would probably work for 100% of users.
Thanks,
<td wrap="on" title="" role="gridcell" class="ui-state-default jqgrid-rownum" style="text-align: center;" aria-describedby="grid_rn" width="40px">
<div id='div_edit_row_9832092'><img class='editRowButton gat-button' id='edit_row_9832092' src='images/edit.png' align='bottom' alt='Edit Row' onclick="editRowButtonClicked(this);" /><img class='lastUpdateButton gat-button' id='last_update_9832092' src='images/icon_info_sml.gif' align='top' alt='Last update'" /></div>
</td>
19:08
Moderators
30/10/2007
Hello,
No need to do this server side. There is a more elegant solution.
Define a custom formatter for that column which will return the value.
The autoencode does not apply to columns that have a custom formatter.
Kind Regards
Tony
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.
Most Users Ever Online: 715
Currently Online:
38 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