Forum


06:48

07/04/2009

I'm not seeing the pager and other navigation buttons in my grids. For sure, I'm probably missing something but I don't know what.
If I inspect in firebug (in firefox) I can see that the html is being created to display the buttons etc.
Page head section is
<ul>
<li><a href="#tab-1"><span>Mail Lists</span></a></li>
<li><a href="#tab-2"><span>Subscribers</span></a></li>
<li><a href="#tab-3"><span>Mail Queues</span></a></li>
</ul>
<div id="tab-1">
{* mail lists *}
<div id="mList">
<table id="tbl_mailList" class="scroll"></table>
<div id="pg_mailList" class = "scroll" style="text-align:right;"></div>
</div>
{* mail items *}
<div id="mItems">
<table id="tbl_mItemList" class="scroll"></table>
<div id="pg_mItemList" class = "scroll" style="text-align:center;"></div>
</div>
</div>
<div id="tab-2">
{* all subscribers *}
<div id="sList">
<table id="tbl_subList" class="scroll"></table>
<div id="pg_subList" class = "scroll" style="text-align:center;"></div>
</div>
{* subscrioptions for subscribers *}
<div id="sItems">
<table id="tbl_sItemList" class="scroll"></table>
<div id="pg_sItemList" class = "scroll" style="text-align:center;"></div>
</div>
</div>
<div id="tab-3">
{* mail queues *}
<div id="qList">
<table id="tbl_qList" class="scroll"></table>
<div id="pg_qList" class = "scroll" style="text-align:center;"></div>
</div>
{* subscribers on queue *}
<div id="qItems">
<table id="tbl_qItemList" class="scroll"></table>
<div id="pg_qItemList" class = "scroll" style="text-align:center;"></div>
</div>
</div>
</div>
$(document).ready(function() {
$("#tabs").tabs();
$("#tbl_mailList").jqGrid({
url:'/zwmail/adminjson/viewmlist/',
colNames:['#','Title','Description','Frequency'],
colModel :[
{name:'id', index:'id', width:30,sortable:false, hidden:true},
{name:'title', index:'title', width:170, sortable:true, editable:true, edittype:'text', editrules:{required:true}},
{name:'description', index:'description', width:300, sortable:false, editable:true, edittype:'text'},
{name:'frequency', index:'frequency', width:80, sortable:false, editable:true, edittype:'select',editoptions:{value:freqOptions}}
],
pager: 'pg_mailList',
caption: 'Mail Lists',
editurl:'someurl',
height:260,
onSelectRow: function(idList) {
if(idList == null) {
return;
} else {
jQuery("#tbl_mItemList").setGridParam({url:"/zwmail/adminjson/viewmitems/idList/" + idList,page:1})
.trigger('reloadGrid');
$('.HeaderButton', tbl_mItemList[0].cDiv).click();
}
}
})
.navGrid('#pg_mailList',
{refresh: true, edit: true, add: true, del: false, search: true},
{height:280,reloadAfterSubmit:false},
{height:280,reloadAfterSubmit:false},
{reloadAfterSubmit:false},
{}
);
var tbl_mItemList = $("#tbl_mItemList").jqGrid({
url:'/zwmail/adminjson/viewmitems/',
colNames:['#','Title','Status','Send Date'],
colModel :[
{name:'id', index:'id', width:30,sortable:false, hidden:true},
{name:'title', index:'title', width:150, sortable:true},
{name:'sendSts', index:'sendSts', width:80, align:'center',sortable:true},
{name:'sendDt', index:'sendDt', width:80, align:'center',sortable:true}
],
pager: jQuery('#pg_mItemList'),
caption: 'Mail Items',
hiddengrid : true
});
});
08:42

Moderators
30/10/2007

Hello,
Which version of jqGrid? - if this is 3.5 alfa there is a problem when the grid is enclosed in initial hidden element.
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.
08:59

07/04/2009

Tony,
Yes, it's V3.5 alfa 2
I tried going back to 3.4 of jqGrid but that just messed things up all over the place
The initial elements are not actually hidden to start with, although of course the non-visible tabs get hidden when the tabs() function gets called. However, the one demonstrated above is the initial tab page.
thx
01:06

Moderators
30/10/2007

Hello,
I have partial correct this bug. Will publish alfa 3 soon.
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:
83 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