Forum
I've downloaded the 3.2rc and overwrote the *.js files in the js folder with the 3.2rc ones. (I had been using jqgrid 3.1). Also, I added the new css element “div.loadingui” into the grid.css file. Unfortunately, however, the grid does not display its contents after the upgrade. (Please see the screen shot for your information: http://mc-dev-01.tech.northwes.....l_32rc.gif).
So, this time, I overwrite every file in 3.2rc except the file grid.base.js so that the js folder includes all the 3.2rc version except the file grid.base.js (still 3.1). Then, the grid showed the content properly.
I'm not sure if this is a 3.2 bug or I'm missing something. Please let me know if anyone has the same issue.
Thank you!
Daniel
I started with 3.2c so I can't really say what happens when upgrading, but I do know that my grids display their data, so it has to be a setting or change somewhere that is different between the versions.
Several 'get' and 'set' methods were dropped in 3.2c, replaced by more generic ones; are you using any of those?
Reg
Thanks for the response. However, I'm sure I'm not using any obsolete methods that are no longer available from 3.2rc (I guess 3.2c in your post is identical to 3.2rc). For your reference, here is my code. This works fine with 3.1 but not with 3.2rc. Please let me know if you find any problem with the code.
Best regards
Daniel
<?php $defaultOptions = '0:No;1:Yes'; ?>
<script language="JavaScript">
var gridimgpath = 'themes/basic/images';
$(document).ready(function(){
var lastsel;
$("#jq_academic_year").jqGrid({
url:'models/admin/m_year_view.php',
datatype: 'json',
mtype: 'POST',
colNames:['Academic year', 'Description', 'Set as default year'],
colModel :[
{name:'year',index:'year', width:200,align:'center',editable:true},
{name:'descr',index:'descr',width:200,align:'center',editable:true},
{name:'is_default',index:'is_default', width:200,align:'center',editable:true,edittype:"select",editoptions:{size:25,value:"<?php print $defaultOptions;?>"}}
],
rowNum:100,
rowList:[10,20,100],
sortname: 'year',
sortorder: 'desc',
viewrecords: true,
imgpath: gridimgpath,
caption: 'Settings - Academic Year',
height : '100%',
afterSubmit : function(data_from_server, array_data) {
var result = data_from_server.responseText.split(";");
if (result[0] == "error") {
return [false, result[1]];
}
else {
return [true, '', result[2]];
}
},
editurl: 'models/admin/m_year_update.php'
});
});
</script>
<!-- JavaScript end -->
<table id="jq_academic_year" class="scroll" cellpadding="0" cellspacing="0"></table>
<div id="jq_page" class="scroll" style="text-align:center;"></div>
By the way, in the file grid.base.js for 3.2rc,
the line number 355 is as below :
$("<div class='loadingui' id=lui_"+this.id+"/>").insertBefore(this);
Although I'm not really familiar with jquery, my understanding is that the code is looking for a <div> tag that has 'loadingui' as its class type to insert something right before the tag. If my understanding is correct, where and how should the <div> tag be defined since I could not find any part that defines the <div class="loadingui"> in jqgrid plugin sources? (I added the "loadingui" style in the grid.css as was indicated by the READMe file)
Should I put put <div class="loadingui"...> somewhere in my code?
I would appreciate any feedback on this.
Best regards,
Daniel
00:34
Moderators
30/10/2007
If you have download the 3.2rc there is a readme.txt on how to upgrade. You need to add some code in css
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.
My baaaad.
I realized that I was using unnecessary header information in my server script below. I commented out those and it worked perfect!
Thanks Tony!
if ( stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml+xml") ) {
header("Content-type: application/xhtml+xml;charset=utf-8");
} else {
header("Content-type: text/xml;charset=utf-8");
}
Most Users Ever Online: 715
Currently Online:
68 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