Forum
November 2nd, 2014
A
A
A
Topic RSS
Related Topics
Offline
The forums are currently locked and only available for read only access



navGrid height
20/04/2011
21:42
21:42

Charlie
New Member
Members
Forum Posts: 2
Member Since:
20/04/2011
20/04/2011

The pager/navGrid isn't showing it's full height. Any idea what I'm doing wrong?
<link type="text/css" href="Scripts/css/start/jquery-ui-1.8.11.custom.css" rel="Stylesheet" media="screen" />
<link type="text/css" href="Scripts/css/ui.jqgrid.css" rel="stylesheet" media="screen" />
<script src="Scripts/js/jquery-1.5.2.min.js" type="text/javascript"></script>
<script src="Scripts/js/jquery-ui-1.8.11.custom.min.js" type="text/javascript"></script>
<script src="Scripts/js/jquery.validate.min.js" type="text/javascript"></script>
<script src="Scripts/js/i18n/grid.locale-en.js" type="text/javascript"></script>
<script src="Scripts/js/jquery.jqGrid.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
$("#Journals").jqGrid({
url: "OutputAjax.aspx",
datatype: "xml",
colNames: ['Id', 'Journal Name', 'Date of Publication'],
colModel: [
{ name: 'projectjournalid', hidden: true, key: true },
{ name: 'journalname', width: 250, sortable: false, editable: true, edittype: 'select', editoptions: { dataUrl: 'OutputAjax.aspx?method=getjournals'} },
{ name: 'datepublication', width: 150, editable: true, sortable: false, editoptions: { dataInit: function (el) { $(el).datepicker().css({ 'background-image': 'url("calendar.gif")', 'background-position': 'right center', 'background-repeat': 'no-repeat' }); } } }
],
pager: $("#jpager"),
rowNum: 20,
editurl: "OutputAjax.aspx",
caption: "Journals",
viewrecords: true,
postData: {
method: "getprojectjournal",
projectid: function () { return getParameterByName("projectid"); }
}
});
$("#Journals").jqGrid('navGrid','#jpager', { edit: true, add: true, del: true, search: false },
{ // edit option
modal: true, closeOnEscape: true, editData: { method: "editprojectjournal", projectid: function () { return getParameterByName("projectid"); } }, mtype: "GET", closeAfterEdit: true,
beforeShowForm: function (form) { $('#tr_journalname', form).hide(); }
},
{ // add option
modal: true, closeOnEscape: true, editData: { method: "addprojectjournal", projectid: function () { return getParameterByName("projectid"); } }, mtype: "GET", closeAfterAdd: true
},
{
modal: true, closeOnEscape: true, delData: { method: "delprojectjournal", projectid: function () { return getParameterByName("projectid"); } }, mtype: "GET"
});
<link type="text/css" href="Scripts/css/ui.jqgrid.css" rel="stylesheet" media="screen" />
<script src="Scripts/js/jquery-1.5.2.min.js" type="text/javascript"></script>
<script src="Scripts/js/jquery-ui-1.8.11.custom.min.js" type="text/javascript"></script>
<script src="Scripts/js/jquery.validate.min.js" type="text/javascript"></script>
<script src="Scripts/js/i18n/grid.locale-en.js" type="text/javascript"></script>
<script src="Scripts/js/jquery.jqGrid.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
$("#Journals").jqGrid({
url: "OutputAjax.aspx",
datatype: "xml",
colNames: ['Id', 'Journal Name', 'Date of Publication'],
colModel: [
{ name: 'projectjournalid', hidden: true, key: true },
{ name: 'journalname', width: 250, sortable: false, editable: true, edittype: 'select', editoptions: { dataUrl: 'OutputAjax.aspx?method=getjournals'} },
{ name: 'datepublication', width: 150, editable: true, sortable: false, editoptions: { dataInit: function (el) { $(el).datepicker().css({ 'background-image': 'url("calendar.gif")', 'background-position': 'right center', 'background-repeat': 'no-repeat' }); } } }
],
pager: $("#jpager"),
rowNum: 20,
editurl: "OutputAjax.aspx",
caption: "Journals",
viewrecords: true,
postData: {
method: "getprojectjournal",
projectid: function () { return getParameterByName("projectid"); }
}
});
$("#Journals").jqGrid('navGrid','#jpager', { edit: true, add: true, del: true, search: false },
{ // edit option
modal: true, closeOnEscape: true, editData: { method: "editprojectjournal", projectid: function () { return getParameterByName("projectid"); } }, mtype: "GET", closeAfterEdit: true,
beforeShowForm: function (form) { $('#tr_journalname', form).hide(); }
},
{ // add option
modal: true, closeOnEscape: true, editData: { method: "addprojectjournal", projectid: function () { return getParameterByName("projectid"); } }, mtype: "GET", closeAfterAdd: true
},
{
modal: true, closeOnEscape: true, delData: { method: "delprojectjournal", projectid: function () { return getParameterByName("projectid"); } }, mtype: "GET"
});
Forum Timezone: Europe/Sofia
Most Users Ever Online: 715
Currently Online:
73 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