Forum
00:49
02/08/2009
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.
02:09
Moderators
30/10/2007
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.
13:22
02/08/2009
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
15:30
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
11:10
Moderators
30/10/2007
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.
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