Forum
21:59
16/12/2008
Hi Tony, I think there's a little defect in grid.common.js. If you don't include the colModel parameter "editoptions:{size:#}", text fields should default to 98%, password to 99%.
In grid.common.js, in createEl, in case "textarea", case "text" and case "password", it looks for:
if(!options.size && elm) {
It appears that this should be:
if(!options.size && elem) {
I tested this change, and it seems honor the % width only with the modified variable in place.
This happens to be the 3.5A2 release, but it looks like it may go back to at least 3.3.2.
Thanks,
Adam
01:03
Moderators
30/10/2007
Hello,
Thanks - IMHO the condition should be changed to:
if(!options.size) {
for password, and text
and
options.cols is for textarea.
the parameter elm in createEl is not needed.
The % should be equall to all. Thanks
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.
03:42
16/12/2008
11:02
07/04/2009
That's fine for text, password, and textarea because you can avoid it by setting size or cols. But for select there needs to be a way to avoid setting the width to 98% or 99% or whatever is decided. I'd prefer not having that happen at all, just leave them at the width the browser gives them (based on the width of the options), and let people set it to 99% in the stylesheet if that's what they want.
02:08
Moderators
30/10/2007
Hello Keith,
Done in 3.5 alfa 3 (the width of the select)
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:
55 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