<?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: setting the property "value" for  elements</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/setting-the-property-value-for-elements</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/setting-the-property-value-for-elements/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>james_ on setting the property "value" for  elements</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/setting-the-property-value-for-elements#p4820</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/setting-the-property-value-for-elements#p4820</guid>
        	        	<description><![CDATA[<p>Isn&#39;t the point of having a key that it&#39;s the one thing we can expect to be unique? The value/name isn&#39;t necessarily unique, and in many cases it&#39;s user input. I agree that a user shouldn&#39;t -- and perhaps should be allowed to -- create two items with the same name, but I think it&#39;ll happen and there&#39;s a reason select-elements are built like they are.</p>
<p>It&#39;s a solution to do lookups the other way, but not sure if it&#39;s very bullet proof 🙂</p>
<p>I also posted in "Help"-forum that when using GridToForm the key is not sent there either. This is something I use to store data on the server, and I want to store the key of course since it&#39;s used for relations. I&#39;m currently working around it by doing a lookup for the ID on the server side code before updating the DB.</p>
]]></description>
        	        	<pubDate>Sun, 22 Feb 2009 07:09:42 +0200</pubDate>
        </item>
        <item>
        	<title>cartman on setting the property "value" for  elements</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/setting-the-property-value-for-elements#p4806</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/setting-the-property-value-for-elements#p4806</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
<p>Thanks for the suggestion to use editoptions key-&#62;value. I can then reverse lookup the key if I want by referencing that array.</p>
<p>I&#39;ll try that and see how I can make it work.</p>
<p>Thanks!</p>
]]></description>
        	        	<pubDate>Fri, 20 Feb 2009 11:00:08 +0200</pubDate>
        </item>
        <item>
        	<title>tony on setting the property "value" for  elements</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/setting-the-property-value-for-elements#p4771</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/setting-the-property-value-for-elements#p4771</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Also I see you&#160; have difficulties to do that, but my question is?</p>
<p>Haw we can obtain this value ?</p>
<p>Also here is a common approach. Get the values from editoption of the select - convert this string to array so that you have key-&#62;value. You should see this array in the jQuery scope, or make it global. After that is easy to do what you want. Get key from value is easy job for you.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 20 Feb 2009 02:22:05 +0200</pubDate>
        </item>
        <item>
        	<title>cartman on setting the property "value" for  elements</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/setting-the-property-value-for-elements#p4752</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/setting-the-property-value-for-elements#p4752</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
<p>Currently I haven&#39;t figured out a way to obtain the value from a cell easily when using advanced edittypes such as a select.</p>
<p>I would like to suggest if you could add the property "value" to all the &#60;td&#62;cells then we could easily obtain the set value that was selected using standard jQuery function val().</p>
<p>Right now the &#60;td&#62; entry looks like this for a cell:</p>
<p>&#60;td title=&#39;One&#39;&#62;One&#60;/td&#62;</p>
<p>If you added the value property then for a select type it could show something like this:</p>
<p>&#60;td title=&#39;One&#39; value=&#39;1&#39;&#62;One&#60;/td&#62;</p>
<p>Please let me know what you think (unless you know of an easier way to obtain these values?).</p>
<p>Thanks!</p>
]]></description>
        	        	<pubDate>Thu, 19 Feb 2009 13:46:04 +0200</pubDate>
        </item>
</channel>
</rss>