Forum
02:51
14/07/2014
First, i want to say that i googled through this forum, but still dont know whats wrong.
In my pager standart buttons (add, edit, delete, search) are missing, rest part of pager working normally.
Also, if i execute in console jQuery("#quest_grid").jqGrid('editRow',"_item_id_"); - its work - i see modal window.
any help?
My code:
   <link type="text/css" rel="stylesheet" href="/skins/css/jquery-ui.css" />    <link type="text/css" rel="stylesheet" href="/skins/css/jquery-ui.theme.css" />    <link type="text/css" rel="stylesheet" href="/skins/css/ui.jqgrid.css" />    <script type="text/javascript" src="/skins/js/jquery-1.11.0.min.js"></script>   <script type="text/javascript" src="/skins/js/jquery-ui.min.js"></script>    <script type="text/javascript" src="/skins/js/grid.locale-ru.js"></script>    <script type="text/javascript" src="/skins/js/jquery.jqGrid.min.js"></script>
Â
   $(document).ready(function () {        $("#quest_grid").jqGrid({            url: "myurl",            datatype: "json",            colNames: ['№', 'Text'],            rowNum: '<?php echo IRB_CONFIG_NUM_ROWS ?>',            colModel: [                {  name: 'quest_id',                    index: 'quest_id',                    editable: false,                    width:10,                    editoptions: {                        readonly: true                    }                },                {                    name: 'quest_text',                    index: 'quest_text',                    width: 90,                    editable: true,                    edittype:"textarea",                    editoptions:{                        rows:"2",                        cols:"20"                    }                }            ],            pager: '#pagernav',            sortname: 'id',            viewrecords: true,            sortorder: "desc",            editurl: "myurl",            autowidth: true,            height:'auto',            pgbuttons:true        });    });    $("#quest_grid").jqGrid(            'navGrid',            '#pagernav',            {               edit: true, //all this buttons are missing!!!                 add: true,                del: true,                search: true,                refresh: true,                view:true            }, //options            {                jqModal:true,                checkOnUpdate:true,                savekey: [true,13],                navkeys: [true,38,40],                checkOnSubmit : true,                reloadAfterSubmit:false,                closeOnEscape:true,                bottominfo:"Fields marked with (*) are required"            }, // edit options            {                jqModal:true,                checkOnUpdate:true,                savekey: [true,13],                navkeys: [true,38,40],                checkOnSubmit : true,                reloadAfterSubmit:false,                closeOnEscape:true,                bottominfo:"Fields marked with (*) are required"            }, // add options            {                reloadAfterSubmit:false,                jqModal:false,                closeOnEscape:true            }, // del options            {                closeOnEscape:true            }, // search options            {                navkeys: [true,38,40],                height:250,                jqModal:false,                closeOnEscape:true            } // view options );    );
11:54
Moderators
30/10/2007
Hello,
Put the navGrid method inside the document ready. The method is outside this and will not work.
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.
Most Users Ever Online: 715
Currently Online:
33 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