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
stype:select searchoptions dataUrl
10/09/2009
09:40
Avatar
adamacosta16ster
florida
New Member
Members
Forum Posts: 2
Member Since:
10/09/2009
sp_UserOfflineSmall Offline

I found another post very similar to this but the problem was never resolved.  Tony asked to check firebug console.  I have done that here as well and nothing is being passed but the data for the main grid content.  Not only that but the filtertoolbar doesn't even display a dropdown at least with an undefined string.  here is a link to my work in progress here.  the jqgrid javascript can be found here.

I can't seem to find any good working examples using searchoptions.  everyone seems to be using editoptions.  although from my understanding the 2 should work similarly.  however the following isn't working for me.  the only way i can get the 'select' feature to work properly is by using editoptions and hardcoding in the values just like in the integrated toolbar demo.  can anyone explain to me how to use searchoptions properly and the dataUrl property? i have seen a few use the dataUrl and a string variable (listdata.toString()) but i can't seem to get these to work either.

jqselect.php

<?php
echo “<select>
<option value='1'>One</option>
<option value='2'>Two</option>
<option value='3'>Three</option>
</select>”;

?>

colModel:[
           {name:'id',index:'playerID', width:65},
           {name:'picture',index:'picture', width:80, align:"right", hidden:true},
           {name:'GPA',index:'GPA', width:80, align:"right"},       
           {name:'SAT',index:'SAT', width:80,align:"right"},       
           {name:'college',index:'college', width:150, sortable:false, stype:'select', search:true, searchoptions:{dataUrl:jqselect.php}},
       ],

view demo here

10/09/2009
20:43
Avatar
MamaliFrenchi
Member
Members
Forum Posts: 62
Member Since:
22/12/2008
sp_UserOfflineSmall Offline

check the documentation  for surl

{name:'college',index:'college', width:150, sortable:false, stype:'select', search:true, surl:jqselect.php},

10/09/2009
21:47
Avatar
adamacosta16ster
florida
New Member
Members
Forum Posts: 2
Member Since:
10/09/2009
sp_UserOfflineSmall Offline

Thanks MamaliFrenchi! That did the trick.  I don't understand why though.  The documentation states that the surl is to be used with custom searching and when using edittype, neither of which i'm doing.  So how did you figure that out? Am I looking at old documentation?

11/09/2009
11:31
Avatar
sectionkeagle
Member
Members
Forum Posts: 8
Member Since:
31/08/2009
sp_UserOfflineSmall Offline

MamaliFrenchi said:

check the documentation  for surl

{name:'college',index:'college', width:150, sortable:false, stype:'select', search:true, surl:jqselect.php},


Helped me as well! Thanks!

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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