Forum
Topic RSS
10:05
31/08/2009
OfflineI am using the Integrated Search Toolbar, and I want to dynamically populate the select type filter in the header of one of my columns. When the grid loads, I get a blank header in my column. I have put a PHP mail function in the file I reference in the dataUrl property (filter.php), so I know that file is not being called. Any ideas of what I am doing wrong?
When the grid loads, everything else works fine.
Thanks in advance!
<script src="js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="js/i18n/grid.locale-en.js" type="text/javascript"></script>
<script src="js/jquery.jqGrid.min.js" type="text/javascript"></script>
<script src="js/grid.subgrid.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
var mygrid = $("#list").jqGrid({
url:'portfolio.php',
datatype: 'xml',
mtype: 'GET',
colNames:['Name','Branch', 'Unit','Video'],
colModel :[
{name:'last_name', index:'last_name', width:365},
{name:'branch', index:'branch', width:100, search:true, stype:'select', searchoptions:{dataUrl:'filter.php'} },
{name:'abbreviation', index:'abbreviation', width:80},
{name:'count_file', index:'count_file', width:80, align:'center'}
],
pager: '#pager',
rowNum:27,
rowList:[10,20,30],
sortname: 'last_name',
sortorder: 'asc',
viewrecords: true,
caption: 'Journalist Portfolio',
height: '600px',
subGrid: true,
subGridUrl : "subgrid.php",
subGridModel: [
{
name : [''],
width : [600],
align : ['center']
}
]
});
mygrid.filterToolbar();
});
</script>
</head>
<body>
<table id="list"></table>
<div id="pager"></div>
</body>
</html>
10:21
Moderators
30/10/2007
OfflineHello,
What return your filter.php - as of documentation it should return valid html select
Best 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.
10:51
Moderators
30/10/2007
OfflineHello,
If you use FireFox - do you see the resonse in the console?
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.
03:31
Moderators
30/10/2007
OfflineHello,
Check the correct path in dataUrl - it is not jqGrid problem.
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.
Most Users Ever Online: 994
Currently Online:
36 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
Log In
Home
