Forum


09:40

10/09/2009

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
Most Users Ever Online: 715
Currently Online:
139 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