Forum


13:11

04/12/2008

Hi!
in form editing, when i select a value in a field type select multiple, this sent ok but when i select two or more options, this sent the last value.
this is the definition colmodel:
...{name:'rooms',index:'rooms', width:80,editable:true,edittype:"select",editoptions:{multiple:true,size:5,value:"101:101;102:102;103:103;104:104;105:105;106:106;107:107"}},...
this grid is basic: edit, add, del... No subgrid.
I take two days with this problem and can not find the solution
Thanks in advanced.
00:18

16/12/2008

Check this post from me awhile back - Tony gives the solution.
In my initial post, I explain a hack that made (”Fix #2″), which I'm actually still using…I haven't gotten around to switching to Tony's method.
http://www.trirand.com/blog/?p.....8;search=1
Hope this helps,
Adam
06:42

20/03/2009

Hi Adam, thanks for the post.
The solution does not seem to be working for me. I've added:
options.name = options.name + "[]";
to grid.common.js at the beginning for the case for the select control.
Still post comes through as a list of DESCRIPTION = x , not as a comma list.
I then tried to use
$desc = implode(",",$_POST["DESCRIPTION"]);
but that just yields an error that DESCRIPTION is not of type array.
Any further suggests on how to obtain the select box values when multiple is true?
Nathan
10:38

Moderators
30/10/2007

Hello,
If you use firebug you can easy see what is posted to the server.
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:
166 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