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_TopicIcon
multiselect in form edit, sent only last value
14/05/2009
13:11
Avatar
pequesalta
Member
Members
Forum Posts: 7
Member Since:
04/12/2008
sp_UserOfflineSmall Offline

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.

15/05/2009
00:18
Avatar
akremedy
California, USA
Member
Members
Forum Posts: 37
Member Since:
16/12/2008
sp_UserOfflineSmall Offline

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

15/05/2009
06:42
Avatar
Nathan
Member
Members
Forum Posts: 37
Member Since:
20/03/2009
sp_UserOfflineSmall Offline

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

20/05/2009
10:38
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information