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_Related Related Topics sp_TopicIcon
Problem with dynamic select
24/01/2011
19:02
Avatar
BaHeK83
RU
New Member
Members
Forum Posts: 1
Member Since:
24/01/2011
sp_UserOfflineSmall Offline
hi, all
Can somebody explain me: which string`s format I must use in order to 
construct select element in jqGrid if I use function ? Quote from 
documentation: "When defined as function - the function should return 
either formated string or object."

i.e. in colModel I have
 { 
name:'ContactType',index:'ContactType',...,editable:true,edittype:"select",editoptions:{value:getContactTypeTA()},...}
and function definition is next

function getContactTypeTA()
{ return "{1:"Type1",2:"Type2"}";}

In this example function return "either formated" string - and that's 
really so: {1:"Type1",2:"Type2"}. BUT !!! In jqGrind that's don' work.
Where can I find format for "either formated string" ?
Any suggestion?

Method supposed here 
http://geekswithblogs.net/renso/archive/2009/07/02/jqgrid-dynamically-loading-select-options.aspx

don't work too.

P.S. It is necessary use scheme without php (editoptions: { size: 
1,dataUrl: 'Includes/tblJobSelect.php',...}), because it use GET and I'm 
use POST.
Forum Timezone: Europe/Sofia

Most Users Ever Online: 496

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