Forum
Version 3.3: the search fields are not aligned with column names and columns (those last two are aligned). And misalignment is cumulative (-n pixels for first column), -2n pixels for second column and so on):
| | | |
| | | |
code as follow: (notice that I used recommended gridModel:true,gridNames:false,gridToolbar:true)
organizationGrid = $("#organizations").jqGrid({
url:"/intranet/organization/list?nd="+new Date().getTime(),
editurl: "/intranet/organization/edit",
datatype: "json",
colNames:["Id",
"organization",
"phone",
"last name",
"first name",
"title",
"email",
"actions"],
colModel:[{name:"organization_id", index:"organization_id", width:10, hidden:true},
{name:"name", index:"name", width:300},
{name:"phone_number", sortable:false, width:80},
{name:"last_name", index:"last_name", width:100},
{name:"first_name", index:"first_name", width:100},
{name:"title", index:"title", width:200},
{name:"email", sortable:false, width:80},
{name:"actions", sortable:false, width:54, align:"center"} ],
sortname: "<?php echo $this->sidx; ?>", /* default: name */
sortorder: "<?php echo $this->sord; ?>", /* default: asc */
rowNum:<?php echo $this->rows; ?>, /* default: 5 */
page:<?php echo $this->page; ?>, /* default: 1 */
pager: $("#organizations_pager"),
viewrecords: true,
imgpath: img_path,
rowList:[5,10,25],
altRows: true,
toolbar: [true,"top"]
}); //end organization grid
jQuery("#t_organizations").height(25).hide().filterGrid("organizations",{gridModel:true,gridNames:false,gridToolbar:true});
jQuery("#organizations").navGrid('#organizations_pager',
{edit:false,add:false,del:false,search:false,refresh:true}).navButtonAdd("#organizations_pager",
{caption:"",title:"Toggle Search",buttonimg: img_path + "find.gif",
onClickButton:function(){
if(jQuery("#t_organizations").css("display")=="none") {
jQuery("#t_organizations").css("display","");
} else {
jQuery("#t_organizations").css("display","none");
}
}
});
04:16
Moderators
30/10/2007
Hello,
Please read the posts about this. filterGrid currently is not fully supported on the header grid.
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: 715
Currently Online:
32 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