<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: Problem with Display of Jqgrid tables</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-display-of-jqgrid-tables</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/help/problem-with-display-of-jqgrid-tables/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>sangeetha on Problem with Display of Jqgrid tables</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-display-of-jqgrid-tables#p28544</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-display-of-jqgrid-tables#p28544</guid>
        	        	<description><![CDATA[<p>hi ,</p>
</p>
<p>i have created 2 tables using jquery,one is with XML Reader(2tables) and json Reader(1 table), but the issue is when i try to run the page, the json Reader tables displays but the Xml Reader tables will have the errors as</p>
<p>Message: &#39;$.jgrid.formatter.integer&#39; is null or not an object</p>
<p>Message: &#39;$.jgrid&#39; is null or not an object</p>
<p>, please guide me.and also for the one table that is &#160;xml reader table we have the error displayed upon the table "undefined". and the other XML Reader table will not be displayed.. and the other way when i cooment the 1 st XML reader table the 2 nd one gets displayed but not both at time...</p>
</p>
<p>&#60;/head&#62;&#60;/script&#62;&#160; &#160; &#160; &#160; &#160; &#160; fillGridOnEvent();&#60;script type="text/javascript"&#62;&#60;/script&#62;&#160; }<br />&#160; &#160; &#160; &#160;});&#160; &#160; &#160; &#160; &#160; &#160;//$("#pager_left").hide();&#160; &#160; &#160; &#160; &#160; &#160;});&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;}&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;return true;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;beforeSelectRow: function () {&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;caption: &#39;Values for last hour&#39;,&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;height: &#39;100%&#39;,&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;viewrecords: true,&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;ignoreCase: true,&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;autoencode: true,&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;hoverrows: false,&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;gridview: true,&#160; &#160; &#160; &#160; &#160; &#160; &#160; // pager: &#39;#pagertbl3&#39;,&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;//rowList: [5, 10, 20],&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;//rowNum: 100,&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;cmTemplate: {sortable: false},&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;colModel: &#60;%=pageContext.findAttribute("colModel").toString()%&#62;,&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;colNames: &#60;%=pageContext.findAttribute("colNames").toString()%&#62;,&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;data: mydata,&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;datatype: &#39;local&#39;,&#160; &#160; &#160; &#160; &#160; &#160;$("#jqgridtbl3").jqGrid({&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; /* &#160;$("#jQGridtime").html("&#60;table id="list3" class="scroll" &#62;&#60;/table width=&#39;50%&#39;&#62;&#60;div id=&#39;pager3&#39;&#62;&#60;/div&#62;"), */&#160; &#160; &#160; &#160; &#160; &#160;};&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;return result;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;}&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;result = &#39; style="display:&#39; + attr.display + &#39;"&#39;;				{&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;} else if (attr.display)&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;result = &#39; rowspan=&#39; + &#39;"&#39; + attr.rowspan + &#39;"&#39;;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;if (attr.rowspan) {&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;var attr = rawObject.attr[cm.name], result;&#160; &#160; &#160; &#160; &#160; &#160;arrtSetting = function (rowId, val, rawObject, cm) {&#160; &#160; &#160; &#160; &#160; &#160;var mydata = &#60;%=pageContext.findAttribute("jsonData1").toString()%&#62;&#160; &#160; &#160; &#160; &#160; &#160;/* &#39;use strict&#39;; */&#160; &#160; &#160; &#160;$(function () {</p>
<p>&#160; &#160;});&#160; &#160; &#160;} &#160; &#160; &#160; &#160;&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; repeatitems: false&#160; &#160; 	 &#160;jsonReader: {&#160; &#160; &#160;emptyDataText:"No Alert Found for This Device.",&#160; &#160; &#160;caption: "Alerts On Device",&#160; &#160; &#160; paging: true,&#160; &#160; &#160; loadonce: true, //pagination is not working with it.&#160; &#160; &#160;shrinkToFit:true,&#160; &#160; &#160;ignoreCase: true,&#160; &#160; &#160;viewrecords: true,&#160; &#160; &#160;pager: &#39;#pagertbl2&#39;,&#160; &#160; &#160;rowList:[10,20,30],&#160; &#160; &#160;rowNum: 10,&#160;&#160; &#160; &#160;],&#160; &#160; &#160; &#160; &#160;&#160; &#160; &#160; &#160; &#160;{name:&#39;Alertended&#39;,index:&#39;Alertended&#39;, align:&#39;center&#39;, sortable:true, width:100 }&#160; &#160; &#160; &#160; &#160;{name:&#39;AlertStarted&#39;,index:&#39;AlertStarted&#39;, align:&#39;center&#39;, sortable:true, width:100 },&#160; &#160; &#160; &#160; &#160;{name:&#39;Recipientlist&#39;,index:&#39;Recipientlist&#39;, align:&#39;center&#39;, sortable:true, width:100 },&#160; &#160; &#160; &#160; &#160;{name:&#39;AlertMessage&#39;,index:&#39;AlertMessage&#39;, align:&#39;center&#39;, sortable:true, width:300 },&#160; &#160; &#160; &#160; &#160;{name:&#39;AlertName&#39;,index:&#39;AlertName&#39;, align:&#39;center&#39;, sortable:true, width:200 },&#160; &#160; &#160; &#160; &#160;{name:&#39;Alert_category&#39;,index:&#39;Alert_category&#39;, align:&#39;center&#39;, sortable:true, width:100 },&#160; &#160; &#160; &#160; &#160;{name:&#39;Alert_Status&#39;,index:&#39;Alert_Status&#39;, align:&#39;center&#39;, sortable:true, width:200 },&#160; &#160; &#160;colModel:[ &#160;&#160; &#160; &#160;colNames:[&#39;Alert Status&#39;,&#39;Alert Category&#39;,&#39;Alert Name&#39;,&#39;Alert Message&#39;,&#39;Recipient List&#39;,&#39;Alert Started&#39;,&#39;Alert Ended&#39;], &#160;&#160; &#160; &#160;height: 70, &#160;&#160; &#160; &#160; &#160; width: 950, &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&#160; &#160; &#160; &#160; xmlReader : {root:"elements", row:"element", page:"alertlist&#62;currentpage", total:"alertlist&#62;totalpages", records:"alertlist&#62;totalrecords", repeatitems:false/*, id:&#39;DEVICENAME&#39;*/ },&#160; &#160; &#160; &#160; datastr : xmlData1,&#160;&#160; &#160; &#160; datatype: "xmlstring",&#160; &#160; &#160;jQuery("#jqgridtbl2").jqGrid({&#160; &#160; &#160;&#160;&#160; &#160;/* &#160; $("#jQGridAlert").html("&#60;table id="list1" class="scroll" &#62;&#60;/table width=&#39;50%&#39;&#62;&#60;div id=&#39;pager1&#39;&#62;&#60;/div&#62;"); &#160; */&#160; &#160; &#160;&#160; &#160; &#160;alert("table3");<br />&#160; &#160; &#160;var xmlData1 =&#39;&#60;%=request.getAttribute("xmlData1")%&#62;&#39;;&#160; &#160;&#160; &#160;});&#160;&#160; &#160; &#160; &#160;&#160;&#160; &#160; }&#160; &#160; &#160; &#160; &#160; &#160; &#160;repeatitems: false&#160; &#160; jsonReader: {&#160; &#160; &#160;emptyDataText:"No Device Status Found for This Location." , &#160;&#160; &#160; &#160;caption: "Device Status",&#160; &#160; &#160; paging: true,&#160; &#160; &#160;loadonce: true, //pagination is not working with it.&#160; &#160; &#160;shrinkToFit:true,&#160; &#160; &#160;ignoreCase: true,&#160; &#160; &#160;viewrecords: true,&#160; &#160; &#160;pager: &#39;#pagertbl1&#39;,&#160; &#160; &#160;rowList:[10,20,30],&#160; &#160; &#160;rowNum: 10,&#160;&#160; &#160; &#160;],&#160; &#160; &#160; &#160; &#160;&#160; &#160; &#160; &#160; &#160;{name:&#39;SENSORID&#39;,index:&#39;SENSORID&#39;, align:&#39;center&#39;, sortable:true, width:100 }&#160; &#160; &#160; &#160; &#160;{name:&#39;PROBEID&#39;,index:&#39;PROBEID&#39;, align:&#39;center&#39;, sortable:true, width:100 },&#160; &#160; &#160; &#160; &#160;{name:&#39;IPADDRESS&#39;,index:&#39;IPADDRESS&#39;, align:&#39;center&#39;, sortable:true, width:100 },&#160; &#160; &#160; &#160; &#160;{name:&#39;SENSORSTATUS&#39;,index:&#39;SENSORSTATUS&#39;, align:&#39;center&#39;, sortable:true, width:200 },&#160; &#160; &#160; &#160; &#160;{name:&#39;DATAlABEL&#39;,index:&#39;DATAlABEL&#39;, align:&#39;center&#39;, sortable:true, width:200 },&#160; &#160; &#160; &#160; &#160;{name:&#39;DEVICENAME&#39;,index:&#39;DEVICENAME&#39;, align:&#39;center&#39;, sortable:true, width:250 },&#160; &#160; &#160;colModel:[ &#160;&#160; &#160; &#160;colNames:[&#39;Device Name&#39;,&#39;Data Label&#39;,&#39;Sensor Status&#39;,&#39;IP Address&#39;,&#39;Probe ID&#39;,&#39;Sensor ID&#39;], &#160;&#160; &#160; &#160;height: 70, &#160;&#160; &#160; &#160; &#160; width: 950, &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&#160; &#160; &#160; &#160; xmlReader : {root:"elements", row:"element", page:"DSList&#62;currentpage", total:"DSList&#62;totalpages", records:"DSList&#62;totalrecords", repeatitems:false/*, id:&#39;DEVICENAME&#39;*/ },&#160; &#160; &#160; &#160; datastr : xmlData,&#160;&#160; &#160; &#160; datatype: "xmlstring",&#160; &#160; &#160;jQuery("#jqgridtbl1").jqGrid({<br />&#160; &#160; /* &#160;$("#jQGrid").html("&#60;table id="list" class="scroll" &#62;&#60;/table width=&#39;50%&#39;&#62;&#60;div id=&#39;pager&#39;&#62;&#60;/div&#62;"); &#160; */&#160; &#160; &#160;&#160;&#160; &#160; &#160; &#160; var xmlData = &#39;&#60;%=request.getAttribute("xmlData")%&#62;&#39;;&#160; &#160; &#160;&#160;	alert("table2");<br />function fillGridOnEvent(){&#60;script type="text/javascript"&#62;<br />&#60;/script&#62; --%&#62;}&#160; &#160;});&#160;&#160; &#160; &#160; &#160;&#160;&#160; &#160; }&#160; &#160; &#160; &#160; &#160; &#160; &#160;repeatitems: false&#160; &#160; jsonReader: {&#160; &#160; &#160;emptyDataText:"No Device Status Found for This Location." , &#160;&#160; &#160; &#160;caption: "Device Status",&#160; &#160; &#160; paging: true,&#160; &#160; &#160;loadonce: true, //pagination is not working with it.&#160; &#160; &#160;shrinkToFit:true,&#160; &#160; &#160;ignoreCase: true,&#160; &#160; &#160;viewrecords: true,&#160; &#160; &#160;pager: &#39;#pagertbl1&#39;,&#160; &#160; &#160;rowList:[10,20,30],&#160; &#160; &#160;rowNum: 10,&#160;&#160; &#160; &#160;],&#160; &#160; &#160; &#160; &#160;&#160; &#160; &#160; &#160; &#160;{name:&#39;SENSORID&#39;,index:&#39;SENSORID&#39;, align:&#39;center&#39;, sortable:true, width:100 }&#160; &#160; &#160; &#160; &#160;{name:&#39;PROBEID&#39;,index:&#39;PROBEID&#39;, align:&#39;center&#39;, sortable:true, width:100 },&#160; &#160; &#160; &#160; &#160;{name:&#39;IPADDRESS&#39;,index:&#39;IPADDRESS&#39;, align:&#39;center&#39;, sortable:true, width:100 },&#160; &#160; &#160; &#160; &#160;{name:&#39;SENSORSTATUS&#39;,index:&#39;SENSORSTATUS&#39;, align:&#39;center&#39;, sortable:true, width:200 },&#160; &#160; &#160; &#160; &#160;{name:&#39;DATAlABEL&#39;,index:&#39;DATAlABEL&#39;, align:&#39;center&#39;, sortable:true, width:200 },&#160; &#160; &#160; &#160; &#160;{name:&#39;DEVICENAME&#39;,index:&#39;DEVICENAME&#39;, align:&#39;center&#39;, sortable:true, width:250 },&#160; &#160; &#160;colModel:[ &#160;&#160; &#160; &#160;colNames:[&#39;Device Name&#39;,&#39;Data Label&#39;,&#39;Sensor Status&#39;,&#39;IP Address&#39;,&#39;Probe ID&#39;,&#39;Sensor ID&#39;], &#160;&#160; &#160; &#160;height: 70, &#160;&#160; &#160; &#160; &#160; width: 950, &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&#160; &#160; &#160; &#160; xmlReader : {root:"elements", row:"element", page:"DSList&#62;currentpage", total:"DSList&#62;totalpages", records:"DSList&#62;totalrecords", repeatitems:false/*, id:&#39;DEVICENAME&#39;*/ },&#160; &#160; &#160; &#160; datastr : xmlData,&#160;&#160; &#160; &#160; datatype: "xmlstring",&#160; &#160; &#160;jQuery("#jqgridtbl1").jqGrid({<br />$("#jQGrid").html("&#60;table id="list" class="scroll" &#62;&#60;/table width=&#39;50%&#39;&#62;&#60;div id=&#39;pager&#39;&#62;&#60;/div&#62;"); &#160;&#160; &#160; &#160;&#160;var xmlData = &#39;&#60;%=request.getAttribute("xmlData")%&#62;&#39;;<br />alert("table1");<br />{&#60;%-- function test()<br />&#60;script type="text/javascript"&#62;<br />&#60;link rel="stylesheet" type="text/css" media="screen" href="&#60;%=request.getContextPath()%&#62;/resources/css/jquery-ui.css" /&#62;&#60;link rel="stylesheet" type="text/css" media="screen" href="&#60;%=request.getContextPath()%&#62;/resources/css/ui.multiselect.css" /&#62;&#60;link rel="stylesheet" type="text/css" media="screen" href="&#60;%=request.getContextPath()%&#62;/resources/css/ui.jqgrid.css" /&#62;&#60;link rel="stylesheet" type="text/css" media="screen" href="&#60;%=request.getContextPath()%&#62;/resources/css/jquery-ui-custom.css" /&#62;<br />&#60;script type="text/javascript" src="http://www.ok-soft-gmbh.com/jqGrid/json2.js"&#62;&#60;/script&#62;&#60;script type="text/javascript" src="http://www.ok-soft-gmbh.com/jqGrid/jquery.jqGrid-4.4.1/js/jquery.jqGrid.src.js"&#62;&#60;/script&#62;&#60;script src="&#60;%=request.getContextPath()%&#62;/resources/js/jqGrid/jquery.json2.js" type="text/javascript"&#62;&#60;/script&#62;&#60;script src="&#60;%=request.getContextPath()%&#62;/resources/js/jqGrid/jquery.jqGrid.src.js" type="text/javascript"&#62;&#60;/script&#62;&#160; &#160; &#60;/script&#62;&#160; &#160; &#160; &#160;$.jgrid.useJSON = true;&#160; &#160; &#160; &#160; $.jgrid.no_legacy_api = true;&#60;script type="text/javascript"&#62;&#60;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"&#62;&#60;/script&#62;<br />&#60;%-- &#60;script src="&#60;%=request.getContextPath()%&#62;/resources/js/jqGrid/jquery.js" type="text/javascript"&#62;&#60;/script&#62; --%&#62;</p>
<p>&#60;script src="&#60;%=request.getContextPath()%&#62;/resources/js/jqGrid/jquery.contextmenu.js" type="text/javascript"&#62;&#60;/script&#62;&#60;script src="&#60;%=request.getContextPath()%&#62;/resources/js/jqGrid/jquery.layout.js" type="text/javascript"&#62;&#60;/script&#62;&#60;script src="&#60;%=request.getContextPath()%&#62;/resources/js/jqGrid/ui.multiselect.js" type="text/javascript"&#62;&#60;/script&#62;&#60;script src="&#60;%=request.getContextPath()%&#62;/resources/js/jqGrid/jquery.tablednd.js" type="text/javascript"&#62;&#60;/script&#62;&#60;script src="&#60;%=request.getContextPath()%&#62;/resources/js/jqGrid/jquery-ui.min.js" type="text/javascript"&#62;&#60;/script&#62;&#60;script src="&#60;%=request.getContextPath()%&#62;/resources/js/jqGrid/jquery.jqGrid.min.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#60;script src="&#60;%=request.getContextPath()%&#62;/resources/js/jqGrid/grid.locale-en.js" type="text/javascript"&#62;&#60;/script&#62;&#60;script src="&#60;%=request.getContextPath()%&#62;/resources/js/jqGrid/jquery-1.9.min.js" type="text/javascript"&#62;&#60;/script&#62;&#60;script src="&#60;%=request.getContextPath()%&#62;/resources/js/jqGrid/jquery.js" type="text/javascript"&#62;&#60;/script&#62;</p>
<p>&#60;script type="text/javascript" src="resources/js/SEMA.js"&#62;&#60;/script&#62;&#60;link rel="stylesheet" href="resources/css/style.css" /&#62;&#60;title&#62;SEMA_device_status&#60;/title&#62;&#60;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&#62;&#60;head&#62;</p>
]]></description>
        	        	<pubDate>Thu, 28 Mar 2013 15:42:59 +0200</pubDate>
        </item>
</channel>
</rss>