<?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: JQgrid - Ondblclick event</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-ondblclick-event</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/jqgrid-ondblclick-event/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>glemarie on JQgrid - Ondblclick event</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-ondblclick-event#p26695</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-ondblclick-event#p26695</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>Are you sure that the rowid&#39;s are unique in the grid ?</p>
]]></description>
        	        	<pubDate>Wed, 30 May 2012 11:09:08 +0300</pubDate>
        </item>
        <item>
        	<title>naysilva on JQgrid - Ondblclick event</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-ondblclick-event#p26686</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-ondblclick-event#p26686</guid>
        	        	<description><![CDATA[<p>I am trying to use the OndblClickRow event to select the booking  reference by which row is selected and no matter which row I select it  always returns the first booking reference in the database. I&#39;m not  quite sure what I am doing wrong?</p>
<p>Here is my code:</p>
</p>
<p>&#160;&#160;&#160; $("#bookings").jqGrid({<br />&#160;&#160; &#160;&#160;&#160; &#160;url:&#39;scripts/php/bootstrp/cp.request.php?ft=gg&#38;table=bookings&#38;showindex=1&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;datatype: &#39;xml&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;mtype: &#39;GET&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;colNames:[&#39;id&#39;,&#39;Booking Reference&#39;,&#39;Date of Booking&#39;,&#39;Time of Booking&#39;,&#39;Booking Date&#39;,&#39;Return Date&#39;, &#39;Fare&#39;],<br />&#160;&#160; &#160;&#160;&#160; &#160;colModel :[{name:&#39;id&#39;, index:&#39;id&#39;, hidden: true, editrules: { edithidden: true }},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;bookref&#39;, index:&#39;bookref&#39;, align:&#39;center&#39;, search:true, width:207},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;recordeddate&#39;, index:&#39;recordeddate&#39;, align:&#39;center&#39;, search:false, width:207},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;recordedtime&#39;, index:&#39;recordedtime&#39;, align:&#39;center&#39;, search:false, width:207},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;bookingdate&#39;, index:&#39;bookingdate&#39;, hidden: true, editrules: { edithidden: true }},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;returndate&#39;, index:&#39;returndate&#39;, hidden: true, editrules: { edithidden: true }},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;fare&#39;, index:&#39;fare&#39;, align:&#39;center&#39;, search:false, width:207}],<br />&#160;&#160; &#160;&#160;&#160; &#160;pager: $(&#39;#bookingsPager&#39;), rowNum:500, rowList:[500,2000,5000,10000],<br />&#160;&#160; &#160;&#160;&#160; &#160;sortname: &#39;recordeddate&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;sortorder: "desc",<br />&#160;&#160; &#160;&#160;&#160; &#160;viewrecords: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; hidegrid: false,<br />&#160;&#160; &#160;&#160;&#160; &#160;imgpath: &#39;lib/themes/steel/images&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;height: &#39;300px&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;forceFit: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;caption: &#39;Bookings History&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;loadtext: &#39;Loading&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;loadui:&#39;enable&#39;,</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; ondblClickRow: function(rowid)<br />&#160;&#160; &#160;&#160;&#160; &#160;{<br />&#160;&#160; &#160;&#160;&#160; &#160;var rowData = new Array();<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;rowData = $("#bookings").getRowData(rowid);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // rowBookingRef = rowData[&#39;bookref&#39;];<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // getGridRow(rowData)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // alert(rowBookingRef)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#cp-bookings-dialog").dialog({ hide: &#39;slide&#39;, height: 625, width: 733, title: &#39;Booking Reference: - &#39;+ rowData[&#39;bookref&#39;]});<br />&#160;&#160; &#160;&#160;&#160; &#160;},</p>
<p>&#160;&#160; &#160;&#160;&#160; &#160;editurl: &#39;scripts/php/bootstrp/cp.request.php?ft=ug&#38;table=bookings&#39;<br />&#160;&#160; &#160;}).navGrid("#bookingsPager",{refresh:true,search:true,add:false,edit:false,del:false});</p>
</p>
<p>Could somebody let me know what I am doing wrong? This is giving me a massive headache.</p>
]]></description>
        	        	<pubDate>Tue, 29 May 2012 13:22:22 +0300</pubDate>
        </item>
</channel>
</rss>