<?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: Details not showing in MAster/detail grid</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/details-not-showing-in-masterdetail-grid</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/bugs/details-not-showing-in-masterdetail-grid/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>maria.clara on Details not showing in MAster/detail grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/details-not-showing-in-masterdetail-grid#p14492</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/details-not-showing-in-masterdetail-grid#p14492</guid>
        	        	<description><![CDATA[<p>hi tony,</p>
</p>
<p>i have already solved this problem.. thanks for th replies..</p>
</p>
<p>regards,</p>
<p>kahtrina <img class="spSmiley" style="margin:0" title="Laugh" src="/blog/wp-content/forum-smileys/sf-laugh.gif" alt="Laugh" /></p>
]]></description>
        	        	<pubDate>Tue, 02 Feb 2010 09:13:59 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Details not showing in MAster/detail grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/details-not-showing-in-masterdetail-grid#p14426</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/details-not-showing-in-masterdetail-grid#p14426</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>This is a PHP code and not Java Script code related to the grid.</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 01 Feb 2010 08:19:44 +0200</pubDate>
        </item>
        <item>
        	<title>maria.clara on Details not showing in MAster/detail grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/details-not-showing-in-masterdetail-grid#p14388</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/details-not-showing-in-masterdetail-grid#p14388</guid>
        	        	<description><![CDATA[<blockquote>
<p>tony said:</p>
<p>Hello,</p>
<p>The true test is to test your server side code. - Also see what parameters are passed to the detail and try to simulate these in the SQL console - you will see the result.</p>
</p>
<p>Best Regards</p>
<p>Tony</p>
</blockquote>
<hr />
<p>here&#39;s my code where it save the details about the company...</p>
<p>function getDetailList() //Show the list of registered user with company details<br />&#160;&#160; &#160;{<br />&#160;&#160; &#160;&#160;&#160; &#160;$item = $this-&#62;input-&#62;post("item"); #&#60;-- this line don&#39;t post the value of the $item that&#39;s why there&#39;s no details showing in the detail grid even when you select a row from the master grid</p>
<p>&#160;&#160; &#160;&#160;&#160; &#160;$page = $this-&#62;input-&#62;post(&#39;page&#39;);<br />&#160;&#160; &#160;&#160;&#160; &#160;$limit = $this-&#62;input-&#62;post(&#39;rows&#39;); <br />&#160;&#160; &#160;&#160;&#160; &#160;$sidx = $this-&#62;input-&#62;post(&#39;sidx&#39;); <br />&#160;&#160; &#160;&#160;&#160; &#160;$sord = $this-&#62;input-&#62;post(&#39;sord&#39;); <br />&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;$query = $this-&#62;input-&#62;post(&#39;query&#39;);<br />&#160;&#160; &#160;&#160;&#160; &#160;$qtype = $this-&#62;input-&#62;post(&#39;qtype&#39;);<br />&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;if (!$sidx) $sidx = &#39;sec_companyaccess.user_id&#39;; <br />&#160;&#160; &#160;&#160;&#160; &#160;if (!$sord) $sord = &#39;desc&#39;;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;if (!$page) $page = 1;<br />&#160;&#160; &#160;&#160;&#160; &#160;if (!$limit) $limit = 25;<br />&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;$start = (($page-1) * $limit);<br />&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;$this-&#62;db-&#62;start_cache();</p>
<p>&#160;&#160; &#160;&#160;&#160; &#160;$this-&#62;db-&#62;join(&#39;maint_company&#39;,&#39;sec_companyaccess.company_id=maint_company.company_id&#39;,&#39;left&#39;);<br />&#160;&#160; &#160;&#160;&#160; &#160;$this-&#62;db-&#62;join(&#39;sec_users &#39;,&#39;sec_companyaccess.user_id=sec_users.user_id&#39;,&#39;left&#39;);<br />&#160;&#160; &#160;&#160;&#160; &#160;$this-&#62;db-&#62;from(&#39;sec_companyaccess&#39;);<br />&#160;&#160; &#160;&#160;&#160;&#160; $this-&#62;db-&#62;where("sec_companyaccess.user_id", $item); <br />&#160;&#160;&#160; &#160;&#160;&#160;&#160; $count = $this-&#62;db-&#62;count_all_results();</p>
<p>&#160;&#160; &#160;&#160;&#160;&#160; if( $count &#62; 0 &#38;&#38; $limit &#62; 0) { <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $total_pages = ceil($count/$limit); <br />&#160;&#160; &#160;&#160;&#160; &#160;} else { <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $total_pages = 0; <br />&#160;&#160; &#160;&#160;&#160; &#160;} </p>
<p>&#160;&#160; &#160;&#160;&#160; &#160;if ($page &#62; $total_pages) $page=$total_pages;<br />&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $start = $limit * $page - $limit; // do not put $limit*($page - 1)<br />&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; if($start &#60;0) $start = 0; <br />&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;$this-&#62;db-&#62;select("sec_companyaccess.company_access_id as pkey,sec_companyaccess.company_access_id, maint_company.company_code, maint_company.company_name,sec_companyaccess.company_id ");<br />&#160;&#160; &#160;&#160;&#160; &#160;$this-&#62;db-&#62;order_by($sidx,$sord);<br />&#160;&#160; &#160;&#160;&#160; &#160;$this-&#62;db-&#62;limit($limit, $start);<br />&#160;&#160; &#160;&#160;&#160; &#160;$query = $this-&#62;db-&#62;get("sec_companyaccess");</p>
<p>&#160;&#160; &#160;&#160;&#160; &#160;$this-&#62;db-&#62;flush_cache();<br />&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;$data[&#39;db&#39;] = $query;<br />&#160;&#160; &#160;&#160;&#160; &#160;$data[&#39;page&#39;] = $page;<br />&#160;&#160; &#160;&#160;&#160; &#160;$data[&#39;totalpages&#39;] = $total_pages;<br />&#160;&#160; &#160;&#160;&#160; &#160;$data[&#39;totalrecords&#39;]=$count; <br />&#160;&#160; &#160;&#160;&#160; &#160;return $data;&#160;&#160; &#160;<br />&#160;&#160; &#160;<br />&#160;&#160; &#160;}</p>
<p>note:</p>
<p>$this-&#62;db-&#62;where("sec_companyaccess.user_id", $item); // but when i change the value of $item here to values 1 or 2 the detail grid is showing the company detail</p>
</p>
<p>hope you can help me... <img class="spSmiley" style="margin:0" title="Cry" src="/blog/wp-content/forum-smileys/sf-cry.gif" alt="Cry" /></p>
]]></description>
        	        	<pubDate>Fri, 29 Jan 2010 04:01:42 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Details not showing in MAster/detail grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/details-not-showing-in-masterdetail-grid#p14345</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/details-not-showing-in-masterdetail-grid#p14345</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>The true test is to test your server side code. - Also see what parameters are passed to the detail and try to simulate these in the SQL console - you will see the result.</p>
</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 28 Jan 2010 16:47:58 +0200</pubDate>
        </item>
        <item>
        	<title>maria.clara on Details not showing in MAster/detail grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/details-not-showing-in-masterdetail-grid#p14304</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/details-not-showing-in-masterdetail-grid#p14304</guid>
        	        	<description><![CDATA[<p>hi,</p>
<p>im currently working with the master/detail grid but i have a problem with when i select a row in the master grid..it don&#39;t show the details i have in the details grid..</p>
</p>
<p><a href="http://codeigniter.com/?ACT=51&#38;fid=49&#38;aid=9616_cc3kMor06Z2ZR01qNjJM&#38;board_id=2"><img src="http://codeigniter.com/?ACT=51&#38;fid=49&#38;aid=9616_cc3kMor06Z2ZR01qNjJM&#38;board_id=2" width="100"  style="vertical-align: middle;" class="spUserImage" alt="master grid" /><img src="http://www.trirand.com/blog/wp-content/sp-resources/forum-themes/default/images/sp_Mouse.png" class=" sfmouseother" alt="Image Enlarger" /></a></p>
<p>this is the view of my master grid..</p>
</p>
<p><a href="http://codeigniter.com/?ACT=51&#38;fid=49&#38;aid=9617_qfmsClnwpoi7qihd3Vwc&#38;board_id=2"><img src="http://codeigniter.com/?ACT=51&#38;fid=49&#38;aid=9617_qfmsClnwpoi7qihd3Vwc&#38;board_id=2" width="100"  class="sfimageleft spUserImage" alt="detail grid" /><img src="http://www.trirand.com/blog/wp-content/sp-resources/forum-themes/default/images/sp_Mouse.png" class="sfimageleft sfmouseleft" alt="Image Enlarger" /></a></p>
<p>this is the detail grid with a blank data after i select the row 3 in my master grid..</p>
<p>i have here the script for the master/detail grid..i&#39;m using CodeIgniter.. here&#39;s the link for my code in CI : <a href="http://codeigniter.com/forums/viewthread/143099/" rel="nofollow" target="_blank"><a href="http://codeigniter.com/forums/" rel="nofollow">http://codeigniter.com/forums/</a>.....ad/143099/</a></p>
</p>
<p>$(".listFlex").jqGrid({</p>
<p>url: root + mod + &#39;/listview&#39;,</p>
<p>editurl: root + mod + &#39;/post&#39;,</p>
<p>sortable: true,</p>
<p>datatype: "json",</p>
<p>mtype: &#39;POST&#39;,</p>
<p>colNames:[&#39;&#39;,&#39;Username&#39;,&#39;Lastname&#39;, &#39;Firstname&#39;,&#39;Middle Initial&#39;],</p>
<p>colModel:[</p>
<p>{name:&#39;user_id&#39;, index: &#39;item&#39;, hidden: true},</p>
<p>{name:&#39;username&#39;,index:&#39;username&#39;, width:80, align:"left", editable:true},</p>
<p>{name:&#39;last_name&#39;, index: &#39;last_name&#39;, width:80, editable: true},</p>
<p>{name:&#39;first_name&#39;,index:&#39;first_name&#39;, width:100,align:"left",editable:true},</p>
<p>{name:&#39;middle_initial&#39;, index: &#39;middle_initial&#39;, width:80, editable: true}</p>
</p>
<p>],</p>
<p>rowNum:10,</p>
<p>rowList:[10,20,30],</p>
<p>rownumbers: true,</p>
<p>pager: &#39;#pager&#39;,</p>
<p>sortname: &#39;username&#39;,</p>
<p>viewrecords: true,</p>
<p>sortorder: &#39;asc&#39;,</p>
<p>autowidth: true,</p>
<p>ondblClickRow: function (celDiv,id)</p>
<p>{</p>
<p>//alert (id);</p>
<p>$(celDiv).addClass("pointer");</p>
<p>$(celDiv).click(function(){</p>
<p>$(&#39;.toolbar a[title=Header]&#39;).trigger(&#39;click&#39;);</p>
<p>viewdb(id);</p>
<p>});</p>
<p>},</p>
<p>height: "200",</p>
<p>caption:"User Role List -Dean",</p>
<p>onSelectRow: function(rowid, selected)</p>
<p>{</p>
<p>if(rowid != null) {</p>
<p>//jQuery("#detFlex1").jqGrid(&#39;setGridParam&#39;,{postData:{user_id:rowid}});</p>
<p>jQuery("#detFlex1").setGridParam({url: root + mod + &#39;/detaillistview&#39;,page:1})</p>
<p>.setCaption("Detail: "+rowid)</p>
<p>jQuery("#detFlex1").trigger("reloadGrid");</p>
<p>$(&#39;.toolbar a[title=Header]&#39;).trigger(&#39;click&#39;);</p>
<p>viewdb(rowid);</p>
<p>//viewHeader(rowid, selected);</p>
<p>}</p>
<p>}</p>
<p>});</p>
<p>$("#detFlex1").jqGrid({</p>
<p>url: root + mod + &#39;/detaillistview&#39;,</p>
<p>datatype: "json",</p>
<p>mtype: &#39;POST&#39;,</p>
<p>colNames:[&#39;&#39;,&#39;Company Code&#39;,&#39;Company Name&#39;, &#39;&#39;],</p>
<p>colModel:[</p>
<p>{name:&#39;company_access_id&#39;, index: &#39;company_access_id&#39;, hidden: true},</p>
<p>{name:&#39;company_code&#39;,index:&#39;company_code&#39;, width:250, align:"left", editable:true},</p>
<p>{name:&#39;company_name&#39;, index: &#39;company_name&#39;, width:250, editable: true},</p>
<p>{name:&#39;company_id&#39;,index:&#39;company_id&#39;, hidden: true}</p>
<p>],</p>
<p>rowNum:10,</p>
<p>rowList:[10,20,30],</p>
<p>rownumbers: true,</p>
<p>sortname: &#39;company_code&#39;,</p>
<p>viewrecords: true,</p>
<p>pager: &#39;#pager1&#39;,</p>
<p>sortorder: &#39;asc&#39;,</p>
<p>autowidth: true,</p>
<p>height: "100",</p>
<p>caption:"Details"</p>
<p>});</p>
</p>
<p>hope you can help me..</p>
</p>
<p>regards,</p>
<p>kahtrina <img class="spSmiley" style="margin:0" title="Cry" src="/blog/wp-content/forum-smileys/sf-cry.gif" alt="Cry" /></p>
]]></description>
        	        	<pubDate>Wed, 27 Jan 2010 09:23:57 +0200</pubDate>
        </item>
</channel>
</rss>