<?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: tableToGrid &#38; selCol with input fields</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/tabletogrid-selcol-with-input-fields</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/tabletogrid-selcol-with-input-fields/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Sloub on tableToGrid &#38; selCol with input fields</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/tabletogrid-selcol-with-input-fields#p11967</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/tabletogrid-selcol-with-input-fields#p11967</guid>
        	        	<description><![CDATA[<p>Thank&#39;s Mark.</p>
<p>I&#39;m going to have a look at that event I did not know.</p>
</p>
<p>Sloub</p></p>
]]></description>
        	        	<pubDate>Mon, 16 Nov 2009 02:46:14 +0200</pubDate>
        </item>
        <item>
        	<title>markw65 on tableToGrid &#38; selCol with input fields</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/tabletogrid-selcol-with-input-fields#p11911</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/tabletogrid-selcol-with-input-fields#p11911</guid>
        	        	<description><![CDATA[<p>I think its a deliberate feature... usually, you want clicks on inputs, selects and links to be handled by the object clicked on, and not by the grid, and thats what the click handler does.</p>
</p>
<p>There is a workaround, which is to supply your own beforeSelectRow handler, and do whatever you want there:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7038' value='Select Code' data-codeid='sfcode7038' /></p>
<div class='sfcode' id='sfcode7038'>
<p>function myBeforeSelectRow(sid, e) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; var grid = $(e.target).closest("table.ui-jqgrid-btable");<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; var td = e.target;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (td.tagName == &#39;A&#39; &#124;&#124; td.tagName == &#39;INPUT&#39; &#124;&#124; td.tagName == &#39;TEXTAREA&#39; &#124;&#124; td.tagName == &#39;OPTION&#39; &#124;&#124; td.tagName == &#39;SELECT&#39; )</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; {</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; /* handle whichever special objects you want */</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; grid.jqGrid("setSelection", sid, true); // or whatever</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return false</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; return true; // let the grid handle everything else the default way...</p>
<p>&#160;&#160; }</p>
</div>
<p>@Tony - it might be nice if the beforeSelectRow handler could tell the grid to ignore the type of the target element, eg by returning -1.</p>
</p>
<p>Mark</p>
]]></description>
        	        	<pubDate>Fri, 13 Nov 2009 09:39:42 +0200</pubDate>
        </item>
        <item>
        	<title>Sloub on tableToGrid &#38; selCol with input fields</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/tabletogrid-selcol-with-input-fields#p11893</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/tabletogrid-selcol-with-input-fields#p11893</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>I&#39;m trying to use jqGrid on a complex existing table.</p>
<p>But, it seems the select row does not perform on input fields.</p>
</p>
<p>&#60;table id="mytable"&#62;<br />&#60;tr&#62;<br />&#160;&#160;&#160; &#60;th&#62; header 1 &#60;/th&#62;<br />&#160;&#160;&#160; &#60;th&#62; header 2 &#60;/th&#62;&#160;&#160;&#160; <br />&#60;/tr&#62;&#160; <br />&#60;tbody&#62;&#160; <br />&#60;tr&#62; <br />&#60;td&#62; data 1 &#60;/td&#62;<br />&#60;td&#62;&#60;input type="text" value="data1"&#62;&#60;/td&#62;<br />&#60;/tr&#62;<br />&#60;tr&#62;<br />&#60;td&#62; data 1 &#60;/td&#62;<br />&#60;td&#62;data 1&#60;/td&#62;<br />&#60;/tr&#62; <br />&#60;/tbody&#62;<br />&#60;table&#62;</p>
<p>Using tableToGrid method, when I click on the input field, il does not select the row.</p>
<p>Is there something I don&#39;t see, or is it an issue ?</p>
</p>
<p>Thank&#39;s for your help.</p>
<p>Sloub</p>
]]></description>
        	        	<pubDate>Fri, 13 Nov 2009 05:52:36 +0200</pubDate>
        </item>
</channel>
</rss>