Forum

July 12th, 2025
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
First load and default value for drop down menu
01/10/2009
06:08
Avatar
Black
Guest
Guests

Hello!

I create drop down menu

                        name: “customer”
                        , index: “customer”
                        , stype: “select”
                        , search: true
                        , editoptions: {value: “1:first;2:second”}
                        , searchoptions:
                        {
                            defaultValue: 2
                        }

But when grid load first time this col did not send to search parameters …

Thanks for help!

01/10/2009
15:10
Avatar
Pete
Member
Members
Forum Posts: 100
Member Since:
01/09/2008
sp_UserOfflineSmall Offline

I think the format should be:

editoptions: {value: “1:first,2:second”}

You have a ";" where it should be a ","

02/10/2009
07:39
Avatar
Black
Guest
Guests

Pete said:

I think the format should be:

editoptions: {value: “1:first,2:second”}

You have a “;” where it should be a “,”


No ";"

The editoptions value must contain a set of value:label pairs with the value separated from the label with a colon (:) and ended with(;). Whichever you use, something like the following

editoption: { value: “FE:FedEx; IN:InTime; TN:TNT” }

I repeat my question: when grid load first time ...

02/10/2009
10:27
Avatar
Pete
Member
Members
Forum Posts: 100
Member Since:
01/09/2008
sp_UserOfflineSmall Offline

Interesting...mine are all comma separated and they all work like a charm.  Even the ones passed in using JSON.

In my case I usually set a variable and then use it in the grid:

var colTrueFalse = {"value":{"T":"True","F":"False"}};

var colTrueFalseBoolean = {"value":{"true":"True","false":"False"}};

var colTrueFalseSL = {"value":{"L":"L","S":"S"}};

$('#empControlLocs').jqGrid({
   url: jsonURL,
   editurl:editURL,
  datatype: 'json',
   height: 250,
   colNames:['Dispatcher','Edit Absences','Sec/Loc','Location/Sector ID'],
  colModel:[
   {name:'dispatcher',index:'dispatcher', width:100, editable:true, edittype:"select",formatter:'select',editoptions:colTrueFalseBoolean},
   {name:'editable',index:'editable', width:150, editable:true,edittype:"select",formatter:'select',editoptions:colTrueFalseBoolean},
   {name:'sector',index:'sector', width:50, editable:true,edittype:"select",formatter:'select',editoptions:colTrueFalseSL},  
   {name:'locId',index:'locId', width:450, editable:true,edittype:"select",formatter:'select',editoptions:colLocations}
   ], 
  rowNum:10,
  rowList:[10,20,30],
  imgpath: gridimgpath,
  pager: $('#empControlLocspager'),
  sortname: 'locId',
  sortorder: "desc",
   jsonReader: {repeatitems: false},
  caption: "Maintain Location Access"
  });

03/10/2009
04:26
Avatar
Black
Guest
Guests

up

Forum Timezone: Europe/Sofia

Most Users Ever Online: 994

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