Forum



23:02

11/04/2011

Here is my code:
jQuery("#list").jqGrid({
url:"/admin/devicelist",
datatype:"json",
colNames:['1','2','3','4','5','6','7','8','9','10','11'],
colModel:[
{name:'1',index:'1',width:100,sorttype:"int",editable:true,search:true,editoptions:{readonly:true,size:12}},
{name:'2',index:'2',width:150,editable:true,editoptions:{size:50}},
{name:'3',index:'3',width:150,editable:true,editoptions:{size:50}},
{name:'4',index:'4',width:70,editable:true,edittype:"checkbox",editoptions:{value:"1:0"}},
{name:'5',index:'5',width:70,editable:true,edittype:"checkbox",editoptions:{value:"1:0"}},
{name:'6',index:'6',width:70,editable:true,edittype:"checkbox",editoptions:{value:"1:0"}},
{name:'7',index:'7',width:70,editable:true,edittype:"checkbox",editoptions:{value:"1:0"}},
{name:'8',index:'8',width:120,editable:true,editoptions:{size:10}},
{name:'9',index:'9',width:120,editable:true,editoptions:{size:10}},
{name:'10',index:'10',width:100,sorttype:"float",editable:true,editoptions:{size:10}},
{name:'11',index:'11',width:120,editable:true,edittype:"checkbox",editoptions:{value:"1:0"}}
],
hidegrid:false,
width:550,
height:400,
rowNum:50,
rowList:[50,100,150,200],
shrinkToFit:false,
pager:'#pager',
sortname:'2',
sortorder:"asc",
viewrecords:true,
caption:"Devices",
editurl:"/admin/editdevice"
});
jQuery("#list").jqGrid('navGrid','#pager',
{refresh:true,add:false,del:false,edit:true,search:true},
{closeAfterEdit:true,closeOnEscape:true,recreateForm:true},
{},
{},
{closeAfterSearch:true,closeAfterReset:true,closeOnEscape:true},
{}
);
I'm having a problem with my jqgrid where after performing a search, i press the refresh button which i expect would reset the results back to the unfiltered list, but it does nothing.
I'm assuming it is submitting, but the parameters being used in the search haven't been cleared, so it simply returns the search results again.
Is there any way around this? Am i missing something? I have googled and read up on forums for the past few hours and haven't had any luck finding any documentation on this.
Any help or adivice is appreciated!
Thanks in advance.
John
12:42

Moderators
30/10/2007

Hello,
Which version of jqGrid is used?
Regards
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:
69 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