<?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: More than one Key column</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/more-than-one-key-column</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/more-than-one-key-column/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Buga on More than one Key column</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/more-than-one-key-column#p8891</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/more-than-one-key-column#p8891</guid>
        	        	<description><![CDATA[<p>ok thx</p>
<p>I thought already about doing this way. just pass another id which is a combination of both.</p>
<p>I thought there might be a better way:)</p>
]]></description>
        	        	<pubDate>Fri, 21 Aug 2009 04:02:03 +0300</pubDate>
        </item>
        <item>
        	<title>tony on More than one Key column</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/more-than-one-key-column#p8864</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/more-than-one-key-column#p8864</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>You can manipulate this easy.</p>
<p>Server side set a uniquie id and pass this id as the id of the grid - can be a combination of the two keys (See Data manipulation in the documentation)</p>
<p>Then use your code.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 21 Aug 2009 02:31:23 +0300</pubDate>
        </item>
        <item>
        	<title>Buga on More than one Key column</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/more-than-one-key-column#p8800</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/more-than-one-key-column#p8800</guid>
        	        	<description><![CDATA[<p>Hi thx for your reply.</p>
</p>
<p>I think I have to define my problem more clearly.</p>
<p>When I use the getGridParam method I get the id of this row(in my case the softwareid). The problem is that I have multiple rows with the same id(1-3 and 4-6). When I try to get other values of this row jquery cant know which row I mean and thatswhy I always get the first row with this id.</p>
<p>I hope you know get the problem I have.</p>
</p>
<p>Here is the code I am using atm:</p>
<p align="left">&#160;</p>
<p align="left">&#160;</p>
<p align="left">&#160;</p>
<p align="left">&#160;</p>
<p align="left"><span style="font-size: x-small;">onclickSubmit : </span><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;">function</span></span><span style="font-size: x-small;">(eparams) {<br /></span><span style="font-size: x-small; color: #3f5fbf;"><span style="font-size: x-small; color: #3f5fbf;">//Funktion um 2 Parameter f&#252;r die L&#246;schmethode zu &#252;bergeben<br /></span></span><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;">var </span></span><span style="font-size: x-small;">retarr = </span><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;">{}</span></span><span style="font-size: x-small;">;<br /></span><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;">var </span></span><span style="font-size: x-small;">sr = jQuery(</span><span style="font-size: x-small; color: #8e00ff;"><span style="font-size: x-small; color: #8e00ff;">"#Account_Server_Software_Zuweisung"</span></span><span style="font-size: x-small;">).getGridParam(</span><span style="font-size: x-small; color: #8e00ff;"><span style="font-size: x-small; color: #8e00ff;">&#39;selrow&#39;</span></span><span style="font-size: x-small;">);<br />rowdata = jQuery(</span><span style="font-size: x-small; color: #8e00ff;"><span style="font-size: x-small; color: #8e00ff;">"#Account_Server_Software_Zuweisung"</span></span><span style="font-size: x-small;">).getRowData(sr);<br />alert(</span><span style="font-size: x-small; color: #8e00ff;"><span style="font-size: x-small; color: #8e00ff;">"Zeile:"</span></span><span style="font-size: x-small;">+sr+</span><span style="font-size: x-small; color: #8e00ff;"><span style="font-size: x-small; color: #8e00ff;">"ServerID:"</span></span><span style="font-size: x-small;">+rowdata.server_id+</span><span style="font-size: x-small; color: #8e00ff;"><span style="font-size: x-small; color: #8e00ff;">"SoftwareID"</span></span><span style="font-size: x-small;">+rowdata.software_id)<br />retarr = </span><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;">{</span></span><span style="font-size: x-small;">server_id:rowdata.server_id,software_id:rowdata.software_id</span><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;">}</span></span><span style="font-size: x-small;">;<br /></span><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;">return </span></span><span style="font-size: x-small;">retarr;</span><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;">}}</span></span><span style="font-size: x-small; color: #3f5fbf;"><span style="font-size: x-small; color: #3f5fbf;">//Options for Del Dialog </span></span></p>
]]></description>
        	        	<pubDate>Wed, 19 Aug 2009 07:27:24 +0300</pubDate>
        </item>
        <item>
        	<title>tony on More than one Key column</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/more-than-one-key-column#p8798</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/more-than-one-key-column#p8798</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Use the beforeSubmit submit event to set other values</p>
<p><a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:form_editing#delgridrow" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....delgridrow</a></p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 19 Aug 2009 07:08:00 +0300</pubDate>
        </item>
        <item>
        	<title>Buga on More than one Key column</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/more-than-one-key-column#p8766</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/more-than-one-key-column#p8766</guid>
        	        	<description><![CDATA[<p>I have the same problem. I want to delete rows in a table but the key consits of 2 ids</p>
<p>Example table</p>
<table border="0">
<tbody>
<tr>
<th>Softwareid</th>
<th>Serverid</th>
</tr>
<tr>
<td>1</td>
<td>4</td>
</tr>
<tr>
<td>1</td>
<td>3</td>
</tr>
<tr>
<td>1</td>
<td>16</td>
</tr>
<tr>
<td>3</td>
<td>6</td>
</tr>
<tr>
<td>3</td>
<td>3</td>
</tr>
<tr>
<td>3</td>
<td>8</td>
</tr>
</tbody>
</table>
<p>I try to get the id with <span style="font-size: x-small;">getGridParam(</span><span style="font-size: x-small; color: #8e00ff;"><span style="font-size: x-small; color: #8e00ff;">&#39;selrow&#39;</span></span><span style="font-size: x-small;">);</span></p>
<p><span style="font-size: x-small;">Imagine I select row 3. <span style="font-size: x-small;">getGridParam(</span><span style="font-size: x-small; color: #8e00ff;"><span style="font-size: x-small; color: #8e00ff;">&#39;selrow&#39;</span></span><span style="font-size: x-small;">); returns 1 in this case(I didnt defined a key column so the first one is the id). Than I need to get the second id of the server (16). </span></span></p>
<p><span style="font-size: x-small;"><span style="font-size: x-small;">Here I use <span style="font-size: x-small;">getRowData(1). The problem is quite simple. Now I get the values softwareid=1 and serverid=4 instead of 1,16.</span></span></span></p>
<p>How can I solve this problem? Is there some kind of internel id for a row which I could use?</p></p>
]]></description>
        	        	<pubDate>Wed, 19 Aug 2009 03:30:46 +0300</pubDate>
        </item>
        <item>
        	<title>tony on More than one Key column</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/more-than-one-key-column#p2838</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/more-than-one-key-column#p2838</guid>
        	        	<description><![CDATA[<p>If you identify the multikey server side you should not do anything.</p>
<p>If you want to work client side you maybe need to use getRowData(rowid)</p>
<p>to get the needed other key values.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 31 Oct 2008 03:02:59 +0200</pubDate>
        </item>
        <item>
        	<title>shibaji on More than one Key column</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/more-than-one-key-column#p2810</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/more-than-one-key-column#p2810</guid>
        	        	<description><![CDATA[<p>If I set a key:true for a column then the post data name is hard coded id not the name of the column.</p>
</p>
<p>Moreover if I want to set more than one column as key column then How can I do that?This is required if the table has more than one primary key.</p>
]]></description>
        	        	<pubDate>Thu, 30 Oct 2008 07:46:12 +0200</pubDate>
        </item>
</channel>
</rss>