<?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: Selects returning option string instead of value</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/selects-returning-option-string-instead-of-value</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/selects-returning-option-string-instead-of-value/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Selects returning option string instead of value</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/selects-returning-option-string-instead-of-value#p9051</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/selects-returning-option-string-instead-of-value#p9051</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thanks Mark. Thanks Keith.</p>
<p>It is true. Will be fixed.</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sun, 30 Aug 2009 10:20:02 +0300</pubDate>
        </item>
        <item>
        	<title>Keith Ivey on Selects returning option string instead of value</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/selects-returning-option-string-instead-of-value#p8982</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/selects-returning-option-string-instead-of-value#p8982</guid>
        	        	<description><![CDATA[<p>It looks like the first (cellval) argument of $.unformat() was changed from a string to a jQuery object or something, but not all the places where it is called have been updated. I guess it still works as long as the cell contents can be recognized by jQuery as an HTML fragment, but that&#39;s not usually going to be the case. It works for a select, which is probably what Tony&#39;s been working on most recently, but not for &#39;&#39; or &#39;foo&#39;, for example, and cell values like &#39;input&#39; or &#39;body&#39; are going to really mess things up. And I&#39;ve been getting warnings when I have cells containing characters like &#39;/&#39; and &#39;!&#39; that are invalid in selectors.</p>
<p>I&#39;m not sure what the fix is, but the first argument probably needs to be either the jQuery object corresponding to the cell (or maybe the DOM object), in which case it shouldn&#39;t be called "cellval", or a string with the contents of the cell, in which case $.unformat() needs to handle it differently.</p>
]]></description>
        	        	<pubDate>Wed, 26 Aug 2009 17:15:21 +0300</pubDate>
        </item>
        <item>
        	<title>markw65 on Selects returning option string instead of value</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/selects-returning-option-string-instead-of-value#p8967</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/selects-returning-option-string-instead-of-value#p8967</guid>
        	        	<description><![CDATA[<p>Im having problems with unformat and getRowData (using latest from github).</p>
</p>
<p>It looks to me like getRowData is broken, but perhaps Im missing something obvious.</p>
</p>
<p>getRowData calls: $.unformat($(this).html(),{colModel:$t.p.colModel[i]},i)</p>
</p>
<p>Note, the first parameter is the html contents of the cell, as a string.</p>
</p>
<p>But $.unformat then uses $(cellval).text() - which for me is always returning the empty string (since, in general cellval wont be a selector that matches anything on the page!).</p>
</p>
<p>Im guessing that getRowData should just pass in this (it fixes the problem for me)</p>
</p>
<p>Mark</p>
]]></description>
        	        	<pubDate>Tue, 25 Aug 2009 22:56:53 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Selects returning option string instead of value</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/selects-returning-option-string-instead-of-value#p8751</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/selects-returning-option-string-instead-of-value#p8751</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>It is done. Will publish the fix tomorow in GitHub ( need some testing)</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 18 Aug 2009 11:21:03 +0300</pubDate>
        </item>
        <item>
        	<title>markw65 on Selects returning option string instead of value</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/selects-returning-option-string-instead-of-value#p8736</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/selects-returning-option-string-instead-of-value#p8736</guid>
        	        	<description><![CDATA[<p>Isnt there an oversight in $.unformat? All the built in formatters are handled there, except for &#8220;select&#8221;.</p>
</p>
<p>Also, shouldn&#39;t there be an equivalent to getRowData that /does/ unformat the data (or did I miss it)? I would have expected it to be the default&#8230; the data gets formatted when its put into the grid, shouldnt it be unformatted when you take it out? Formatting is pure presentation &#8211; Im normally interested in the data value, rarely how its being displayed.</p>
</p>
<p>Mark</p>
]]></description>
        	        	<pubDate>Tue, 18 Aug 2009 09:36:47 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Selects returning option string instead of value</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/selects-returning-option-string-instead-of-value#p8347</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/selects-returning-option-string-instead-of-value#p8347</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>This is true. In the grid we have the string, but not the value. The getRowData return what is in the column.</p>
<p>Use custom unformat function to do that - (I f you go to do this use the last development from GitHub or wait for some days.)</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 07 Aug 2009 00:07:43 +0300</pubDate>
        </item>
        <item>
        	<title>Rowan on Selects returning option string instead of value</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/selects-returning-option-string-instead-of-value#p8341</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/selects-returning-option-string-instead-of-value#p8341</guid>
        	        	<description><![CDATA[<p>I&#39;m working with editable rows and when I use getRowData on a row that contains a select it returns the option text where I require the option value</p>
</p>
<p>eg</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4875' value='Select Code' data-codeid='sfcode4875' /></p>
<div class='sfcode' id='sfcode4875'>
<p>&#60;select&#62;</p>
<p>&#60;option value=&#39;1&#39;&#62;Value 1&#60;/option&#62;</p>
<p>&#60;option selected=&#39;selected&#39; value=&#39;2&#39;&#62;Value 2&#60;/option&#62;</p>
<p>&#60;/select&#62;</p>
</div>
<p>I expect it to return &#39;2&#39; but instead its returning &#39;Value 2&#39;</p>
<p>Is this a bug or do I need to get the value a different way?</p>
</p>
<p>Cheers</p>
]]></description>
        	        	<pubDate>Thu, 06 Aug 2009 22:41:53 +0300</pubDate>
        </item>
</channel>
</rss>