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
navigation buttons not displaying
07/04/2009
06:48
Avatar
akitson
Member
Members
Forum Posts: 8
Member Since:
07/04/2009
sp_UserOfflineSmall Offline

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

<script type="text/javascript" src="/js/jquery/jquery-1.3.2.js"></script>
<script type="text/javascript" src="/js/jquery/jquery-ui-1.7.1.custom.min.js"></script>
<script type="text/javascript" src="/js/jquery/jqGrid/jquery.jqGrid.js"></script>
<link href="/css/screen/jquery/ui/redmond/jquery-ui-1.7.1.custom.css" media="screen" rel="stylesheet" type="text/css" />
The page layout is:
<div id="tabs">
    <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>
and the javascript is (for first grid set only):
$.extend($.jgrid.defaults,{width:572,rowNum:10,rowList:[10,20,30],sortname:'id',sortorder:'desc',imgpath:'images',datatype:'json',mtype:'GET'});
$(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
    });
});

I've checked the css file (jquery-ui-1.7.1.custom.css) and added the contents of ui.jqgrid.css to it, including the jqm* declarations.
Everything else seems to work, just not the navigation bar.
Any help is appreciated. thanks.
07/04/2009
08:42
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

07/04/2009
08:59
Avatar
akitson
Member
Members
Forum Posts: 8
Member Since:
07/04/2009
sp_UserOfflineSmall Offline

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 Frown

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

14/04/2009
01:06
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

14/04/2009
01:45
Avatar
akitson
Member
Members
Forum Posts: 8
Member Since:
07/04/2009
sp_UserOfflineSmall Offline

OK, I'll wait for it and try again

Forum Timezone: Europe/Sofia

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

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information