<?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: Passing/accessing SQL ID data in grid fields</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/passingaccessing-sql-id-data-in-grid-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/passingaccessing-sql-id-data-in-grid-fields/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>psychobyte on Passing/accessing SQL ID data in grid fields</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/passingaccessing-sql-id-data-in-grid-fields#p16738</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/passingaccessing-sql-id-data-in-grid-fields#p16738</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I have a grid that I would like to have rows double clicked to run a modal form(jquery ui)&#160; that then pulls data from sql via ajax to</p>
<p>populate the form fields.&#160; However, the data (being records id&#39;s in sql) needs to be hidden or set as id&#39;s of cells e.g &#60;td sqlrecordid="23" &#62;Field Value&#60;/td&#62;. I need to be able to retrieve these id&#39;s ondoubleclick to query the database. &#160; I&#39;d like to hear people&#39;s suggestions on how to accomplish this.</p>
<p>getCell and getRowData only grab the cell data and can&#39;t access these "Hidden" id&#39;s.</p>
</p>
<p>Also, i&#39;ve passed id&#39;s to cell data by passing them via XML(not proud of this) in this fashion e.g.</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1843' value='Select Code' data-codeid='sfcode1843' /></p>
<div class='sfcode' id='sfcode1843'>echo &#34;echo &#34;&#60;cell&#62;&#60;![CDATA[&#60;span sqlrecordid=&#39;1&#39;&#62;&#34;. $row[note].&#34;&#60;/span&#62;]]&#62;&#60;/cell&#62;&#34;;</div>
<p>Is there an easier way or way of adding these id&#39;s to the cell element instead?</p>
</p>
<p>Thanks,</p>
]]></description>
        	        	<pubDate>Tue, 27 Apr 2010 00:33:49 +0300</pubDate>
        </item>
</channel>
</rss>