Forum


11:42

18/11/2009

Is there a way to set the button in the search UI to a custom css class? I've seen the buttonclass property, but I don't think that applies to the basic search ui. I have other buttons on my page and would like for them to match what's in my grid and viceversa. Is there a way to do this? What I have doesn't seem to do the job.
$("#tblFiles").jqGrid({
url:'/processors/?fx=gt',
datatype: "json",
colNames:['Name', 'Type', 'Expires','Notes'],
colModel:[ {name:'Name',index:'Name', width:125, sortable:true, searchoptions: {buttonclass:'button small', sopt:["eq", "bw", "cn", "ew"]}},
{name:'Type',index:'Type', width:30, align:"center", sortable:false, formatter:typeFormatter, search: false},
{name:'ExpDate',index:'ExpDate', width:40, align:"center", sortable:true, search: false},
{name:'Notes',index:'Notes', width:200, sortable:true, search: false}],
rowNum:10,
scrollOffset: 0,
multiselect: true,
hidegrid: false,
altRows: false,
autowidth: true,
pager: $('#filePager'),
sortname: 'ExpDate',
viewrecords: true,
emptyrecord: "You have no files available.",
sortorder: "asc",
caption:"My Files",
height: gridHeight,
pginput: true
});
$('#tblFiles').jqGrid('navGrid','#filePager',{edit:false,add:false,del:false,search:true});
Most Users Ever Online: 715
Currently Online:
52 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