<?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: Help with multiselect and getting selected ID's</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/help-with-multiselect-and-getting-selected-ids</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/help-with-multiselect-and-getting-selected-ids/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on Help with multiselect and getting selected ID's</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/help-with-multiselect-and-getting-selected-ids#p21468</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/help-with-multiselect-and-getting-selected-ids#p21468</guid>
        	        	<description><![CDATA[<p>Look at <a href="http://stackoverflow.com/questions/3587480/jquery-modal-dialog-and-jqgrid/3588732#3588732" target="_blank">this old answer</a>&#160;having <a href="http://www.ok-soft-gmbh.com/jqGrid/DataToMultiSelect2.htm" target="_blank">the demo</a>&#160;(the sending of data to the server are commented in the demo). Probably it will help you to solve the problem.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Tue, 28 Dec 2010 16:07:34 +0200</pubDate>
        </item>
        <item>
        	<title>Impulse9 on Help with multiselect and getting selected ID's</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/help-with-multiselect-and-getting-selected-ids#p21467</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/help-with-multiselect-and-getting-selected-ids#p21467</guid>
        	        	<description><![CDATA[<blockquote>
<p>001priyank said:</p>
<p>let me understand your problem</p>
<p>You want to send all the selected rows to your php page on some button click? Is it?</p>
</p>
</blockquote>
<hr />
<p>Yes, exactly!</p>
</p>
<p>Even more (if this possible):</p>
<p>1. Button click (significant button, named "Get selected rows")- send all the selected rows to php page.</p>
<p>2. Button click (on the row) &#160;- send only selected row to php page.&#160;</p>
]]></description>
        	        	<pubDate>Tue, 28 Dec 2010 15:41:34 +0200</pubDate>
        </item>
        <item>
        	<title>001priyank on Help with multiselect and getting selected ID's</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/help-with-multiselect-and-getting-selected-ids#p21464</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/help-with-multiselect-and-getting-selected-ids#p21464</guid>
        	        	<description><![CDATA[<p>let me understand your problem</p>
<p>You want to send all the selected rows to your php page on some button click? Is it?</p></p>
]]></description>
        	        	<pubDate>Tue, 28 Dec 2010 13:59:38 +0200</pubDate>
        </item>
        <item>
        	<title>Impulse9 on Help with multiselect and getting selected ID's</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/help-with-multiselect-and-getting-selected-ids#p21377</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/help-with-multiselect-and-getting-selected-ids#p21377</guid>
        	        	<description><![CDATA[<p>People, please help!</p>
<p>Tell me in which direction "dig in" - to understand, how to pass ID&#39;s from selected rows to PHP!</p>
<p>Theoretically it&#39;s AJAX, json data format...but how?</p>
]]></description>
        	        	<pubDate>Wed, 22 Dec 2010 09:28:58 +0200</pubDate>
        </item>
        <item>
        	<title>Impulse9 on Help with multiselect and getting selected ID's</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/help-with-multiselect-and-getting-selected-ids#p21360</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/help-with-multiselect-and-getting-selected-ids#p21360</guid>
        	        	<description><![CDATA[<p>Greetings to all!</p>
</p>
<p>In first, thanks to Tony for his efforts. jqGrid is very useful in right hands. Sorry for my English.</p>
<p>And thats the question is:</p>
<p>How to transfer ID&#39;s of selected rows to PHP &#8211; on MouseClickButton, i.e., in jqGrid terms &#8211; onSelectRow.&#160;</p>
<p>Here we are, the table, jqGrid ver 3.5:</p>
<p>Fulfilling such things, as popup full-sized images for onMouseOver event, <em>saverow.php&#160;</em>- working good (thanks again to Tony and others), and also <em>saverow.php</em>&#160;fulfilling task of assigning flag in hidden column &#8211; so, after clicking many rows and pushing "Sort selected rows" button &#8211; they going first in grid, so user can proof his choice or deselect some, and only then press "Save grid" or some.</p>
<p>But it takes many time &#8211; select each row and press Enter. Mayby exist much easier way?</p>
<p>I carefully reading all jqGrid examples and manuals, but cant find solution.</p>
<p>Iis it possible &#8211; get selected ID to MySQL DB via PHP &#8211; on SelectRow event ? Each row&#39;s ID then go to the base, and then "Sort selected rows" &#160;and so on.</p>
<p>Or more useful &#8211; get array of selected ID&#39;s to the PHP &#8211; via assigned button?</p>
<p><a href="http://savepic.org/1047939.jpg"><img src="http://savepic.org/1047939.jpg" width="100"  class="sfimageleft spUserImage" alt="Example of table" /><img src="http://www.trirand.com/blog/wp-content/sp-resources/forum-themes/default/images/sp_Mouse.png" class="sfimageleft sfmouseleft" alt="Image Enlarger" /></a></p>
</p>
<p>I&#39;am not good in AJAX and jQuery, that&#39;s why i beg your pardon, and ask to explain in detail, or give example of code.</p>
<p>My current code is:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9278' value='Select Code' data-codeid='sfcode9278' /></p>
<div class='sfcode' id='sfcode9278'>
<p>&#160;&#160;&#160; &#160; &#160;onSelectRow: function (id)</p>
<p><span style=&#34;&#34;&#34;&#34;white-space:&#34;&#34;&#34;> </span>{ &#160; if (id &#38;&#38; id != lastSel)</p>
<p>&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; {</p>
<p><span style=&#34;&#34;&#34;&#34;white-space:&#34;&#34;&#34;> </span>jQuery(&#39;#list&#39;).setCell (id,&#39;selected&#39;,&#39;1&#39;);</p>
<p><span style=&#34;&#34;&#34;&#34;white-space:&#34;&#34;&#34;> </span>var selr1 = jQuery(&#39;#list&#39;).getGridParam(&#39;selrow&#39;);</p>
<p><span style=&#34;&#34;&#34;&#34;white-space:&#34;&#34;&#34;> </span>if (selr1) alert(selr1);<span style=&#34;&#34;&#34;&#34;white-space:&#34;&#34;&#34;> </span></p>
</div>
<p>What i need to do instead alert expression &#8211; call AJAX function or function similar -&#160;<em>saverow.php, </em>maybe to immediately perform SQL like that:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9006' value='Select Code' data-codeid='sfcode9006' /></p>
<div class='sfcode' id='sfcode9006'>UPDATE goods SET selected=1 WHERE id=&#39;selr1&#39;</div>
<p>or store expression in array?</p>
</p>
<p>And please, give me some words about selecting rows with holding Shift button. Is that possible?</p></p>
]]></description>
        	        	<pubDate>Mon, 20 Dec 2010 16:43:28 +0200</pubDate>
        </item>
</channel>
</rss>