Forum
02:30
05/06/2009
Hi Toni,
I am Using the JQGrid 3.5 alpha 3 release to render a Tree using Adjesancy model. The Entire Tree Grid along with Expand Nodes and Leaf nodes is working fine acorss the browsers except IE6 and IE7. In fact it is also working for IE8.
In IE6 and 7 the Expand Column in the grid appears as the normal column without any link or Expand Node image (folder iamge) in order to drill through it to view its child nodes.
As far as I read online and understood from other forums that IE6 and IE7 does not support most of the CSS and DOM models.
Any possible help with resoliution or workaround to this situation is much appriciated.
Thanks,
Sid
05:08
Moderators
30/10/2007
Hello,
If you give me a link to the problem it will be good. Also does the demo pages where we have a couple of tree grids work for you in IE6 and IE7?
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.
05:26
05/06/2009
Hi Tony,
Yes that the demo links shared by you for JQGid are working perfectly fine on IE6 and 7.
I just noticed it that even when I run it from JSP page it wirks fine for IE 6 / 7. In my applications at the Web layer we use XSL and as I found it is not working in IE6 and 7 only when I try to render it within the XSL page.
I dont have any direct link which can we shared but I am posting the code from my XSL file hope if its usefull for you.
------------------------------------------------------------------------------------------------
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:wdk="http://www.saba.com/XML/WDK">
<xsl:import href="../wdk/xsl/view/wdk_defaultview.xsl"/>
<xsl:variable name="css" select="/wdk:page/wdk:head/wdk:theme/href"/>
<xsl:variable name="siteroot" select="/wdk:page/wdk:head/wdk:site/siteRoot"/>
<xsl:template match="wdk:model">
<link rel="stylesheet" type="text/css" media="screen" href="{$siteroot}/themes/sand/grid.css" />
<link rel="stylesheet" type="text/css" media="screen" href="{$siteroot}/themes/jqModal.css" />
<link rel="stylesheet" type="text/css" media="screen" href="{$siteroot}/css/ui.jqgrid.css" />
<link rel="stylesheet" type="text/css" media="screen" href="{$siteroot}/css/ui.hoover.css" />
<script type="text/javascript"><xsl:attribute name="src"><xsl:value-of select="$siteroot"/>/jquery.js</xsl:attribute></script>
<script type="text/javascript"><xsl:attribute name="src"><xsl:value-of select="$siteroot"/>/hovertip.js</xsl:attribute></script>
<script type="text/javascript"><xsl:attribute name="src"><xsl:value-of select="$siteroot"/>/jquery.jqGrid.js</xsl:attribute></script>
<script type="text/javascript"><xsl:attribute name="src"><xsl:value-of select="$siteroot"/>/js/jqModal.js</xsl:attribute></script>
<script type="text/javascript"><xsl:attribute name="src"><xsl:value-of select="$siteroot"/>/js/jqDnR.js</xsl:attribute></script>
<script type="text/javascript"><xsl:attribute name="src"><xsl:value-of select="$siteroot"/>/js/grid.inlinedit.js</xsl:attribute></script>
<script language="javascript">
// initialize tooltips in a seperate thread
$(document).ready(function() {
window.setTimeout(hovertipInit, 1);
});
var lastsel;
jQuery(document).ready(function(){
jQuery("#list").jqGrid({
url:'http://sparakh:8180/Saba/TestJ.....t',
datatype: 'xml',
colNames:['Username', 'FName','LName', 'Email','PersonNo','SSN'],
colModel :[
{name:'username', index:'username', width:150, editable:false, align:'left',resizable:true, formatter: 'showlink'},
{name:'fname', index:'fname', width:90, editable:false, resizable:true},
{name:'lname', index:'lname', width:90, editable:false, resizable:true},
{name:'email', index:'email', width:180, editable:true, align:'left',resizable:true},
{name:'person_no', index:'person_no', width:100, editable:false, align:'right',resizable:true},
{name:'ss_no', index:'ss_no', width:100, sortable:false, editable:true, resizable:false} ],
pager: jQuery('#pager'),
sortname: 'fname',
sortorder: "asc",
viewrecords: true,
height:'auto',
autowidth: true,
cellEdit: true,
cellurl: 'http://sparakh:8180/Saba/TestJqGridServlet',
treeGrid: true,
treeGridModel : 'adjacency',
ExpandColumn : 'username',
imgpath: '/Saba/assets/themes/sand/images',
<!--caption: 'My Grid', -->
loadComplete: function()
{
window.setTimeout(hovertipInit, 1);
},
loadError : function(xhr,st,err)
{
jQuery("#rsperror").html("Type: "+st+"; Response: "+ xhr.status + " "+xhr.statusText);
}
});
});
function myPopup(url)
{
var finalurl = '/common/profile/profileSnapshotPopup.rdf?managerContext=direct&'+url;
wdkPopupSubmitWithTitle(finalurl, "PersonProfile", "width=650,height=460,"+wdkBaseWindowFeatures,'');
}
</script>
<noscript>Script to refresh the page and perform other actions</noscript>
<p class="sbMainPageHeadingText"><b>Response:</b></p>
<span id="rsperror" style="color:red"></span>
<table id="list" class="scroll" cellpadding="0" cellspacing="0"></table>
<!-- <div id="pager" class="scroll" style="text-align: center;"></div> -->
</xsl:template>
</xsl:stylesheet>
------------------------------------------------------------------------------------------------
Thanks for all your help.
Sid
09:15
Moderators
30/10/2007
Hello,
I'm little confused - which version of jqGrid do you use actualy?
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.
15:42
** This is a post from another thread. this does not work in IE7 at all... something rather screwy going on with IE7 and treegrid.
I have a working example here:
http://www.blackstag.com/json-example
it's not adjacency, but it shouldn't matter – since your issues are json related.
just use firebug and look at the console return json data.
tim
13:23
Ryan,
I looked at your JSON data at http://www.blackstag.com/json-example. You have a trailing comma in your JSON, which is not accepted by IE, but will work in FF. If you are still having an IE issue, I would look to change that first.
14:06
> “You have a trailing comma in your JSON, which is not accepted by IE, but will work in FF.”
Interesting I didn't know that. This was an old example I pitched out there weeks ago (I didn't even know it was still up. It was a good halloween theme, but the holiday is now over. I will either correct it tonight or take it down).
thanks,
tim
Most Users Ever Online: 715
Currently Online:
25 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