<?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: input width 100% with no issues when doing inline editing</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/input-width-100-with-no-issues-when-doing-inline-editing</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/input-width-100-with-no-issues-when-doing-inline-editing/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>snobo on input width 100% with no issues when doing inline editing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/input-width-100-with-no-issues-when-doing-inline-editing#p7029</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/input-width-100-with-no-issues-when-doing-inline-editing#p7029</guid>
        	        	<description><![CDATA[<p>Don&#39;t really get what you mean, but anyway I only suggested to fix the inline/cell editing.</p>
<p>Just found one more place that would need fixing should you consider it possible to include, in <strong>grid.celledit.js</strong>, line #89, for example like this:</p>
<p><span class="sfcode">window.setTimeout(function () { $(elc).focus(); $(&#39;input&#39;,elc).focus(); },0);</span></p>
]]></description>
        	        	<pubDate>Wed, 03 Jun 2009 05:19:17 +0300</pubDate>
        </item>
        <item>
        	<title>tony on input width 100% with no issues when doing inline editing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/input-width-100-with-no-issues-when-doing-inline-editing#p6592</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/input-width-100-with-no-issues-when-doing-inline-editing#p6592</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Yes I learned this before some days too <img class="spSmiley" style="margin:0" title="Smile" src="/blog/wp-content/plugins/simple-forum/tinymce/plugins/emotions/img/smiley-smile.gif" border="0" alt="Smile" /></p>
<p>Will perform some tests and maybe include this. The problem that appear here is in form edit when we have relative smal items in select,&#160; but the table data is relative big. In this case the look is not so impressive</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sat, 09 May 2009 10:48:56 +0300</pubDate>
        </item>
        <item>
        	<title>snobo on input width 100% with no issues when doing inline editing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/input-width-100-with-no-issues-when-doing-inline-editing#p6522</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/input-width-100-with-no-issues-when-doing-inline-editing#p6522</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
<p>I have a more or less simple suggestion how to achive real 100% input width when doing inline/cell editing. Currently, you set input width to 98%, as a dirty/partial workaround for a input width issue (when set to 100% it stretches out of cell boundaries). I say partial, because depending on user&#39;s CSS inputs may still pierce out of the cell or simply look unaligned.</p>
<p>So, I suggest to wrap text input in a div, and move input&#39;s borders, padding and background to this parent div (all issues disappear). I&#39;ve made the following modifications:</p>
<p><strong>grid.common.js</strong></p>
<p><span class="sfcode">jQuery(elem).css({width:"98%"});</span></p>
<p>changes into</p>
<p><span class="sfcode">elem =&#160; $(&#39;&#60;div class="twrap"&#62;&#60;/div&#62;&#39;).append(elem).get(0);</span></p>
<p><strong>&#160;grid.inlinedit.js</strong></p>
<p><span class="sfcode">$(elc).addClass("editable")</span></p>
<p>changes into</p>
<p><span class="sfcode">if (elc.tagName==&#39;DIV&#39;) $(elc).children().addClass("editable"); else $(elc).addClass("editable");</span></p>
<p>and in the CSS I&#39;ve added the following (for example):</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2957' value='Select Code' data-codeid='sfcode2957' /></p>
<div class='sfcode' id='sfcode2957'>.grid_bdiv .twrap { padding:2px; background-color:#FFF; }<br />.grid_bdiv .twrap input { border:0 none; padding:0; width:100%; }</div>
<p>Voila! Tested in FF3, IE6/7, everything works... In grid.celledit.js a small fix is also necessary for</p>
<p><span class="sfcode">window.setTimeout(function () { $(elc).focus();},0);</span></p>
<p>for example,</p>
<p><span class="sfcode">window.setTimeout(function () { $(&#39;:input&#39;,cc).focus();},0);</span></p>
<p>dunno about other places, I guess you can know better.</p>
<p>Generally, 100% width of an input inside %-width table cell can be a really pain-in-the-ass problem in IE6/7, which I learnt how to cure via usage of multiple wrappers and positioning, but here in the jqGrid it&#39;s not a big deal because of the fixed column widths.</p>
<p>my 0.02 euro 😉</p>
]]></description>
        	        	<pubDate>Wed, 06 May 2009 08:07:38 +0300</pubDate>
        </item>
</channel>
</rss>