<?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: onClickSubmit</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/onclicksubmit-1</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/onclicksubmit-1/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>will on onClickSubmit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/onclicksubmit-1#p2849</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/onclicksubmit-1#p2849</guid>
        	        	<description><![CDATA[<p>The onClickSubmit event is not firing and I can&#39;t see why. Any help appreciated!</p>
<p><span style="font-size: x-small;">$(</span><span style="font-size: x-small; color: #a31515;">"#order_hist"</span><span style="font-size: x-small;">).jqGrid({ url:</span><span style="font-size: x-small; color: #a31515;">&#39;order.aspx?custid=&#39;</span><span style="font-size: x-small;">+0, datatype: </span><span style="font-size: x-small; color: #a31515;">&#39;json&#39;</span><span style="font-size: x-small;">, mtype: </span><span style="font-size: x-small; color: #a31515;">&#39;GET&#39;, </span><span style="font-size: x-small;">colNames: [</span></p>
<p><span style="font-size: x-small; color: #a31515;">&#39;Order ID&#39;</span><span style="font-size: x-small;">,</span><span style="font-size: x-small; color: #a31515;">&#39;Order Date&#39;</span><span style="font-size: x-small;">,</span><span style="font-size: x-small; color: #a31515;">&#39;Order Status&#39;</span><span style="font-size: x-small;">,</span><span style="font-size: x-small; color: #a31515;">&#39;Quantity&#39;</span><span style="font-size: x-small;">,</span><span style="font-size: x-small; color: #a31515;">&#39;Vintage&#39;</span><span style="font-size: x-small;">,</span><span style="font-size: x-small; color: #a31515;">&#39;Display Name&#39;</span><span style="font-size: x-small;">,</span><span style="font-size: x-small; color: #a31515;">&#39;Price&#39;</span><span style="font-size: x-small;">,</span><span style="font-size: x-small; color: #a31515;">&#39;Total&#39;</span></p>
<p><span style="font-size: x-small;">],<font size="2"></font></span></p>
<p>colModel: [ {name:</p>
</p>
<p>
<span style="font-size: x-small; color: #a31515;">&#39;orderID&#39;</span><span style="font-size: x-small;">, index:</span><span style="font-size: x-small; color: #a31515;">&#39;orderID&#39;</span></p>
<p><span style="font-size: x-small;">, width:75},<font size="2"></font></span></p>
<p>{name:</p>
</p>
<p>
<span style="font-size: x-small; color: #a31515;">&#39;orderDate&#39;</span><span style="font-size: x-small;">, index:</span><span style="font-size: x-small; color: #a31515;">&#39;orderDate&#39;</span></p>
<p><span style="font-size: x-small;">, width:90},<font size="2"></font></span></p>
<p>{name:</p>
</p>
<p>
<span style="font-size: x-small; color: #a31515;">&#39;orderStatus&#39;</span><span style="font-size: x-small;">, index:</span><span style="font-size: x-small; color: #a31515;">&#39;orderStatus&#39;</span><span style="font-size: x-small;">, width:120,editable:</span><span style="font-size: x-small; color: #0000ff;">true</span><span style="font-size: x-small;">,edittype:</span><span style="font-size: x-small; color: #a31515;">&#39;select&#39;</span><span style="font-size: x-small;">,editoptions: {value: </span><span style="font-size: x-small; color: #a31515;">"SC:Shopping Cart;P:Picking;SH:Ship Hold;F:Fulfilled"</span></p>
<p><span style="font-size: x-small;">}},<font size="2"></font></span></p>
<p>{name:</p>
</p>
<p>
<span style="font-size: x-small; color: #a31515;">&#39;quantity&#39;</span><span style="font-size: x-small;">, index:</span><span style="font-size: x-small; color: #a31515;">&#39;quantity&#39;</span></p>
<p><span style="font-size: x-small;">, width:70},<font size="2"></font></span></p>
<p>{name:</p>
</p>
<p>
<span style="font-size: x-small; color: #a31515;">&#39;vintage&#39;</span><span style="font-size: x-small;">, index:</span><span style="font-size: x-small; color: #a31515;">&#39;vintage&#39;</span></p>
<p><span style="font-size: x-small;">, width:60},<font size="2"></font></span></p>
<p>{name:</p>
</p>
<p>
<span style="font-size: x-small; color: #a31515;">&#39;displayname&#39;</span><span style="font-size: x-small;">, index:</span><span style="font-size: x-small; color: #a31515;">&#39;displayname&#39;</span></p>
<p><span style="font-size: x-small;">, width:250},<font size="2"></font></span></p>
<p>{name:</p>
</p>
<p>
<span style="font-size: x-small; color: #a31515;">&#39;price&#39;</span><span style="font-size: x-small;">, index:</span><span style="font-size: x-small; color: #a31515;">&#39;price&#39;</span></p>
<p><span style="font-size: x-small;">, width:60},<font size="2"></font></span></p>
<p>{name:</p>
</p>
<p>
<span style="font-size: x-small; color: #a31515;">&#39;total&#39;</span><span style="font-size: x-small;">, index:</span><span style="font-size: x-small; color: #a31515;">&#39;total&#39;</span></p>
<p><span style="font-size: x-small;">, width:60}</span></p>
<p>],</p>
<p><font size="2"></font></p>
<p>onClickSubmit :</p>
</p>
<p>
<span style="font-size: x-small; color: #0000ff;">function</span></p>
<p><span style="font-size: x-small;">() {<font size="2"></font></span></p>
<p>alert(</p>
</p>
<p>
<span style="font-size: x-small; color: #a31515;">&#39;in onClicksubmit&#39;</span></p>
<p><span style="font-size: x-small;">);<font size="2"></p>
<p></font></span></p>
<p>
<span style="font-size: x-small; color: #0000ff;">var</span></p>
<p><span style="font-size: x-small;"> retarr = {};<font size="2"></p>
<p></font></span></p>
<p>
<span style="font-size: x-small; color: #0000ff;">var</span><span style="font-size: x-small;"> sr = $(</span><span style="font-size: x-small; color: #a31515;">"#order_hist"</span><span style="font-size: x-small;">).getGridParam(</span><span style="font-size: x-small; color: #a31515;">&#39;selrow&#39;</span></p>
<p><span style="font-size: x-small;">);<font size="2"></font></span></p>
<p>rowdata = $(</p>
</p>
<p>
<span style="font-size: x-small; color: #a31515;">"#order_hist"</span></p>
<p><span style="font-size: x-small;">).getRowData(sr);</span></p>
<p>retarr = {orderID:rowdata.orderID};</p>
<p><font size="2"></p>
<p></font></p>
<p>
<span style="font-size: x-small; color: #0000ff;">return</span></p>
<p><span style="font-size: x-small;"> retarr;</span></p>
<p>},</p>
<p><font size="2"></font></p>
<p>pager: $(</p>
</p>
<p>
<span style="font-size: x-small; color: #a31515;">"#order_hist_pager"</span></p>
<p><span style="font-size: x-small;">), rowNum:10, rowList:[10,20,30],<font size="2"></font></span></p>
<p>sortname:</p>
</p>
<p>
<span style="font-size: x-small; color: #a31515;">&#39;orderID&#39;</span><span style="font-size: x-small;">, sortorder: </span><span style="font-size: x-small; color: #a31515;">"orderID"</span><span style="font-size: x-small;">, viewrecords: </span><span style="font-size: x-small; color: #0000ff;">true</span><span style="font-size: x-small;">, imgpath: </span><span style="font-size: x-small; color: #a31515;">&#39;images/grid_images&#39;</span></p>
<p><span style="font-size: x-small;">,<font size="2"></font></span></p>
<p>caption:</p>
</p>
<p>
<span style="font-size: x-small; color: #a31515;">"Order History"</span><span style="font-size: x-small;">,height:</span><span style="font-size: x-small; color: #a31515;">"150px"</span><span style="font-size: x-small;">,editurl:</span></p>
<p><span style="font-size: x-small; color: #a31515;">&#39;order.aspx&#39;</span></p>
<p><span style="font-size: x-small;"><br />
</span></p>
<p>});</p></p>
]]></description>
        	        	<pubDate>Fri, 31 Oct 2008 11:24:37 +0200</pubDate>
        </item>
</channel>
</rss>