Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_Related Related Topics sp_TopicIcon
Clearing a Search
11/04/2011
23:02
Avatar
johnnycanehdian
Kingston
New Member
Members
Forum Posts: 2
Member Since:
11/04/2011
sp_UserOfflineSmall Offline

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/04/2011
12:42
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

13/04/2011
16:16
Avatar
johnnycanehdian
Kingston
New Member
Members
Forum Posts: 2
Member Since:
11/04/2011
sp_UserOfflineSmall Offline

Verion is 3.7.2

Thanks

John

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
45 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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information