<?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: row select/ cell selecting</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/row-select-cell-selecting</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/feature-request/row-select-cell-selecting/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on row select/ cell selecting</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/row-select-cell-selecting#p14143</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/row-select-cell-selecting#p14143</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I see some things that can be done easy. You concentrate on the grid structure, rather than to see if some method exists <img class="spSmiley" style="margin:0" title="Wink" src="/blog/wp-content/forum-smileys/sf-wink.gif" alt="Wink" /></p>
<p>Also step by step.</p>
<p>1. There is a single click event onSelectRow</p>
<p><a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:events" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....iki:events</a></p>
</p>
<p>2. There is a method called: setGridState which maybe should replace your trigger</p>
<p><a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:methods#add_on_grid_methods" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....id_methods</a></p>
</p>
<p>3. You can do it very easy</p>
<p>for the detail grid</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3507' value='Select Code' data-codeid='sfcode3507' /></p>
<div class='sfcode' id='sfcode3507'>
<p>$("#detail"). jqGrid({</p>
<p>...</p>
<p>datatype: &#39;local&#39;</p>
<p>...</p>
<p>});</p>
<p>$("#detail"). jqGrid(&#39;setGridParam&#39;,{datatype:&#39;json&#39;});</p>
</div>
<p>With this code initially the detail does not load the data, but after that accept any request</p>
</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 22 Jan 2010 12:30:44 +0200</pubDate>
        </item>
        <item>
        	<title>kikz4life on row select/ cell selecting</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/row-select-cell-selecting#p13987</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/row-select-cell-selecting#p13987</guid>
        	        	<description><![CDATA[<p>hi tony,</p>
</p>
<p>actually its not a link. the viewHeader is a javascript function that will hide the divHeader or the grid to display its details. Right now i have 2 jqgrid master -details. Right now upon opening the page the 2 jqgrid (master, detail) both loads but what i want to do is not to automatically load the details jqgrid.&#160; How can i accomplish this?</p>
</p>
<p>this is what i did: also tony is their a single click row? 🙂</p>
<p>&#160;ondblClickRow: function(id){ <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $(&#39;.toolbar a[title=Header]&#39;).trigger(&#39;click&#39;);&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; viewdb(id);&#160;&#160;&#160; &#160;&#160;&#160; <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; },</p>
</p>
<p>thanks</p>
<p>-Dean</p>
]]></description>
        	        	<pubDate>Mon, 18 Jan 2010 03:56:57 +0200</pubDate>
        </item>
        <item>
        	<title>tony on row select/ cell selecting</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/row-select-cell-selecting#p13833</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/row-select-cell-selecting#p13833</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>You can use custom formatter for this purpose and set onclick event something like this:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6915' value='Select Code' data-codeid='sfcode6915' /></p>
<div class='sfcode' id='sfcode6915'>
<p>...</p>
<p>colModel :[</p>
<p>...</p>
<p>{name:&#39;some&#39; ... formatter: mycellformatter...},</p>
<p>...</p>
<p>],</p>
<p>...</p>
</p>
<p>function mycelformatter(value, options, rowobj)</p>
<p>{</p>
<p>// the rowid is</p>
<p>// rowobj.rowId.</p>
<p>return "&#60;a href=&#39;#&#39; onclick=&#39;viewHeader(...);return false;&#39; &#62;" +value+"&#60;/a&#62;";</p>
<p>}</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2134' value='Select Code' data-codeid='sfcode2134' /></p>
<div class='sfcode' id='sfcode2134'>
<p>Hope this helps</p>
<p>You can hide the grid like this $("#gbox_mygrid").hide(), where mygrid is the id of your grid.</p>
<p>Best Regards</p>
<p>Tony</p>
</div>
</div>
]]></description>
        	        	<pubDate>Wed, 13 Jan 2010 17:30:52 +0200</pubDate>
        </item>
        <item>
        	<title>kikz4life on row select/ cell selecting</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/row-select-cell-selecting#p13810</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/row-select-cell-selecting#p13810</guid>
        	        	<description><![CDATA[<p>i formerly used flexgrid in my application but because of jqgrid easy data loading and manipulation, im really interested in using this to my my new site. In flexgrid i was able to select a row and if click it will hide my div then display the details of the user.&#160; I want to explain something that flexgrid has and its about the <strong>process</strong> property.</p>
<p>in flexgrid</p>
<p>{name : &#39;a.user&#39;, width : 100, align : &#39;left&#39;, <strong>process:viewHeader</strong>, sortable:true}</p>
</p>
<p><strong>the javascript function for viewHeader</strong></p>
<p>function viewHeader(celDiv,id)<br />{<br />&#160;&#160;&#160; $(celDiv).addClass("pointer");<br />&#160;&#160;&#160; $(celDiv).click(function(){<br />&#160;&#160;&#160; &#160;&#160;&#160; $(&#39;.toolbar a[title=Header]&#39;).trigger(&#39;click&#39;);&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; <br />&#160;&#160;&#160; &#160;&#160;&#160; viewdb(id);&#160;&#160;&#160; &#160;&#160;&#160; <br />&#160;&#160;&#160; });</p>
<p>&#160; <br />}</p>
<p>$(&#39;#Header&#39;).show().siblings(&#39;div.panel&#39;).hide();</p>
</p>
<p>the function of viewHeader was to hide my flexgrid and display an HTML file in the same page.&#160;</p>
</p>
<p>Does jqgrid has this property or function?</p>
]]></description>
        	        	<pubDate>Wed, 13 Jan 2010 05:35:04 +0200</pubDate>
        </item>
</channel>
</rss>