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_TopicIcon
jqGrid 3.5 Custom search: clearSearch does not clear search form values
03/08/2009
00:49
Avatar
galost
Oradea,Romania
Member
Members
Forum Posts: 5
Member Since:
02/08/2009
sp_UserOfflineSmall Offline

1.It seems that in the new jqGrid 3.5, clearSearch method does not clear search form values for a Custom search. What worked in 3.4.X does not work anymore in 3.5. The _search variable becomes 'false' after a clearSearch call, but a search value - once set - is not reset after that call.

2.The 'hidden' attribute for a column seems not to work. Once I put it, the column still appears (without header), even when I call the hideCol method. But if I do not use the 'hidden' attribute and call hideCol method, the column becomes hidden (now I use this workaround).

Is something that I'm missing?

Please, help me.

Thank you.

03/08/2009
02:09
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Thanks.

1. Fixed in GitHub.

2. Could not reproduce. Where you put hidden 'attribute'? if you call hidden:'true' it will not work. Try:

colModel : [...{name:'myname', hidden : true,...},...]

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/08/2009
06:20
Avatar
NSV
Member
Members
Forum Posts: 5
Member Since:
10/01/2009
sp_UserOfflineSmall Offline

I have the same problem 1 for integrated search toolbar (wath on demo page).

When we remove a search parameter, it's not delete in http request, so if we type another search parameter in another column, the two search parameter are active.

Nicolas

03/08/2009
13:22
Avatar
galost
Oradea,Romania
Member
Members
Forum Posts: 5
Member Since:
02/08/2009
sp_UserOfflineSmall Offline

tony said:

Hello,

Thanks.

1. Fixed in GitHub.

2. Could not reproduce. Where you put hidden 'attribute'? if you call hidden:'true' it will not work. Try:

colModel : [...{name:'myname', hidden : true,...},...]

Regards

Tony


Thank you for the reply. Both issues were solved by you. The 2nd was my mistake. I used hidden: 'true' instead of hidden:true. Surprisingly, it worked in 3.4.x.

As about the 1st issue, I downloaded the latest version from GitHub. It works OK.

Thank you again.

Regards,

Tibi

17/08/2009
15:30
Avatar
Sue
Guest
Guests

I am trying to put a custom search form for the basic grid. Following the custom search documentation I added following lines to my already working basic grid

<div id="filter"></div>
<script  type="text/javascript">
jQuery("#filter").filterGrid("list",
  {
    gridModel:true,
    gridNames:true,
    formtype:"vertical",
    enableSearch:true,
    enableClear:false,
    autosearch: false,
  }
);

</script>

and I get a javascript error .navGrid is not a function on the previous line where on document ready I have this

 jQuery(document).ready(function(){
      jQuery('#list').jqGrid({
        url:'/data2.json',
        datatype: 'json',
        mtype: 'GET',
        height: '300px',
        postdData: {tpe:0,user_id:'123'},
        colNames:['Num#','Client Ref','Name','Name 2', 'Status','Balance'],
        colModel:[
          {name:'id',index:'id',width:80 },
       ---
          {name:'balance', index:'balance', width:100,align:"right" }
          ],
        pager: '#pager',
        emptyrecords: "Nothing to display",
        rowNum:20,
        rowList:[10,20,30],
        sortname: 'id',
        sortorder: "desc",
        viewrecords: true,
        viewsortcols : [true,'vertical',true],
        imgpath: '/themes/base/images',
        caption: 'Debtors'
      }).navGrid('#pager',{edit:false,add:false,del:false});
    });
I am not much familiar with new javascript syntax. Please check what I am doing wrong?

Thanks

Sue

18/08/2009
11:10
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Check which modules do you have downloaded. I think you missed some of them like grid.formedit.js

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.

Forum Timezone: Europe/Sofia

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.com

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information