<?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: ContextMenu</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/contextmenu</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/contextmenu/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on ContextMenu</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/contextmenu#p23277</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/contextmenu#p23277</guid>
        	        	<description><![CDATA[<p>Inside of <strong>onContextMenu</strong> event handler you can use</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6848' value='Select Code' data-codeid='sfcode6848' /></p>
<div class='sfcode' id='sfcode6848'>var rowId = $(event.target).closest(&#34;tr.jqgrow&#34;).attr(&#34;id&#34;);</div>
<p>to get the rowId. Inside of &#39;edit&#39;, &#39;add&#39; and other popup menu handler you can use <strong>t.id</strong>&#160;go get the rowid.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Sun, 22 May 2011 16:37:37 +0300</pubDate>
        </item>
        <item>
        	<title>eagle on ContextMenu</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/contextmenu#p23274</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/contextmenu#p23274</guid>
        	        	<description><![CDATA[<p>Hello. I trying to add context menu with contextmenu plugin.</p>
<p>All works fine.</p>
<p>But how can I get rowid, when I click on contextmenu item?</p>
<p>Thats my code:</p>
<p>jQuery(".jqgrow, #listlearning_programs").contextMenu(&#39;myMenu1&#39;, {</p>
<p><span style="white-space: pre;"> </span>&#160;bindings: {</p>
<p><span style="white-space: pre;"> </span>&#39;edit&#39;: function(t) {</p>
<p><span style="white-space: pre;"> </span>//popup menu edit button handler</p>
<p><span style="white-space: pre;"> </span>},</p>
<p><span style="white-space: pre;"> </span>&#39;add&#39;: function(t) {</p>
<p><span style="white-space: pre;"> </span>//popup menu add button handler</p>
<p><span style="white-space: pre;"> </span>},</p>
<p><span style="white-space: pre;"> </span>&#39;del&#39;: function(t) {</p>
<p><span style="white-space: pre;"> </span>//popup menu del button handler</p>
<p><span style="white-space: pre;"> </span>}</p>
<p><span style="white-space: pre;"> </span>},</p>
<p><span style="white-space: pre;"> </span>onContextMenu : function(event, menu){</p>
<p><span style="white-space: pre;"> </span>}</p>
<p>});</p>
]]></description>
        	        	<pubDate>Sun, 22 May 2011 14:38:43 +0300</pubDate>
        </item>
        <item>
        	<title>ladracu2001 on ContextMenu</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/contextmenu#p20132</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/contextmenu#p20132</guid>
        	        	<description><![CDATA[<p>Hello, try to change your code:</p>
<p>&#60;script src="r/html/jquery/contextmenu/jquery.contextmenu.js" type="text/javascript"&#62;&#60;/script&#62;</p>
<p>for this one:</p>
<p>&#60;script type="text/javascript" src="js/jquery.contextmenu.r2.js"&#62;&#60;/script&#62;</p></p>
]]></description>
        	        	<pubDate>Mon, 04 Oct 2010 17:43:01 +0300</pubDate>
        </item>
        <item>
        	<title>federico on ContextMenu</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/contextmenu#p20020</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/contextmenu#p20020</guid>
        	        	<description><![CDATA[<p>Hi, i&#39;ve tried to integrate context menu without success, it doesn&#39;t appear</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7862' value='Select Code' data-codeid='sfcode7862' /></p>
<div class='sfcode' id='sfcode7862'>&#60;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Strict//EN&#34; &#34;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&#34;&#038;gt" rel="nofollow" target="_blank"><a href="http://www.w3.org/TR/xhtml1/DT" rel="nofollow">http://www.w3.org/TR/xhtml1/DT</a>.....t;&#038;gt</a>;<br />&#60;html xmlns=&#34;<a href="http://www.w3.org/1999/xhtml&#038;quot" rel="nofollow" target="_blank">http://www.w3.org/1999/xhtml&#038;quot</a>; xml:lang=&#34;en&#34; lang=&#34;en&#34;&#62;<br />&#60;head&#62;<br />&#160;&#160;&#160; &#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=utf-8&#34; /&#62;<br />&#160;&#160;&#160; &#60;title&#62;jqGrid ContextMenu&#60;/title&#62;<br />&#160;&#160;&#160; &#60;link rel=&#34;stylesheet&#34; type=&#34;text/css&#34; media=&#34;screen&#34; href=&#34;r/html/jquery/redmond/css/redmond/jquery-ui-1.8.4.custom.css&#34; /&#62;<br />&#160;&#160;&#160; &#60;link rel=&#34;stylesheet&#34; type=&#34;text/css&#34; media=&#34;screen&#34; href=&#34;r/html/jquery/contextmenu/jquery.contextmenu.css&#34; /&#62;<br />&#160;&#160;&#160; &#60;link rel=&#34;stylesheet&#34; type=&#34;text/css&#34; media=&#34;screen&#34; href=&#34;r/html/jquery/jqGrid/themes/ui.jqgrid.css&#34; /&#62;<br />&#160;&#160;&#160; &#60;link rel=&#34;stylesheet&#34; type=&#34;text/css&#34; media=&#34;screen&#34; href=&#34;r/html/jquery/jqGrid/themes/ui.multiselect.css&#34; /&#62;</p>
<p>&#160;&#160;&#160; &#60;script src=&#34;r/html/jquery/redmond/js/jquery-1.4.2.min.js&#34; type=&#34;text/javascript&#34;&#62;&#60;/script&#62;<br />&#160;&#160;&#160; &#60;script src=&#34;r/html/jquery/redmond/js/jquery-ui-1.8.4.custom.min.js&#34; type=&#34;text/javascript&#34;&#62;&#60;/script&#62;</p>
<p>&#160;&#160;&#160; &#60;script src=&#34;r/html/jquery/jqGrid/js/jquery.layout.js&#34; type=&#34;text/javascript&#34;&#62;&#60;/script&#62;<br />&#160;&#160;&#160; &#60;script src=&#34;r/html/jquery/jqGrid/js/ui.multiselect.js&#34; type=&#34;text/javascript&#34;&#62;&#60;/script&#62;<br />&#160;&#160;&#160; &#60;script src=&#34;r/html/jquery/jqGrid/js/i18n/grid.locale-it.js&#34; type=&#34;text/javascript&#34;&#62;&#60;/script&#62;<br />&#160;&#160;&#160; &#60;script src=&#34;r/html/jquery/jqGrid/js/jquery.jqGrid.js&#34; type=&#34;text/javascript&#34;&#62;&#60;/script&#62;<br />&#160;&#160;&#160; &#60;!--script src=&#34;jqGrid/js/jquery.tablednd.js&#34; type=&#34;text/javascript&#34;&#62;&#60;/script--&#62;<br />&#160;&#160;&#160; &#60;script src=&#34;r/html/jquery/contextmenu/jquery.contextmenu.js&#34; type=&#34;text/javascript&#34;&#62;&#60;/script&#62;<br />&#160;&#160;&#160; &#60;script type=&#34;text/javascript&#34;&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; var gridimgpath = &#39;r/html/jquery/redmond/images&#39;;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; var eventsMenu = {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; bindings: {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#39;edit&#39;: function(t) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert(&#39;Accion [Editar] del elemento &#39; + t.id);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#39;cut&#39;: function(t) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert(&#39;Accion [Cortar] del elemento &#39; + t.id);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#39;copy&#39;: function(t) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert(&#39;Accion [Copiar] del elemento &#39; + t.id);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#39;paste&#39;: function(t) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert(&#39;Accion [Pegar] del elemento &#39; + t.id);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#39;delete&#39;: function(t) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert(&#39;Accion [Eliminar] del elemento &#39; + t.id);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; };</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(document).ready(function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#list2&#39;).jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: &#39;json&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames: [&#39;id&#39;, &#39;name&#39;, &#39;screen_name&#39;, &#39;text&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel: [<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;id&#39;, index: &#39;id&#39;, width: 100 },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;name&#39;, index: &#39;name&#39;, width: 100 },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;screen_name&#39;, index: &#39;screen_name&#39;, width: 100 },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;text&#39;, index: &#39;text&#39;, width: 500 }],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; imgpath: gridimgpath,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager: jQuery(&#39;#pager2&#39;),<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: &#39;id&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortorder: &#39;desc&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption: &#39;JSON Example&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; afterInsertRow: function(rowid, rowdata, rowelem) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#&#39; + rowid).contextMenu(&#39;MenuJqGrid&#39;, eventsMenu);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }).navGrid(&#39;#pager2&#39;, { edit: false, add: false, del: false });</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $.getJSON(&#39;<a href="http://twitter.com/status/user_timeline/JQuery.json?count=15&#038;callback=?&#038;#39" rel="nofollow" target="_blank">http://twitter.com/status/user_timeline/JQuery.json?count=15&#038;callback=?&#038;#39</a>;, function(data) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $.each(data, function(i, val) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#list2&#39;).addRowData(val.id, { id: val.id, name: val.user.name,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; screen_name: val.user.screen_name, text: val.text<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; });</p>
<p>&#60;/script&#62;</p>
<p>&#60;/head&#62;<br />&#60;body&#62;<br />&#160;&#160;&#160; &#60;div&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;table id=&#34;list2&#34; class=&#34;scroll&#34; cellpadding=&#34;0&#34; cellspacing=&#34;0&#34;&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/table&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;div id=&#34;pager2&#34; class=&#34;scroll&#34; style=&#34;text-align: center;&#34;&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/div&#62;<br />&#160;&#160;&#160; &#60;/div&#62;<br />&#160;&#160;&#160; &#60;div class=&#34;contextMenu&#34; id=&#34;MenuJqGrid&#34;&#62;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;ul&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;li id=&#34;edit&#34;&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;img src=&#34;themes/contextMenu/edit.png&#34; /&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Editar&#60;/li&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;li id=&#34;cut&#34;&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;img src=&#34;themes/contextMenu/cut.png&#34; /&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Cortar&#60;/li&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;li id=&#34;copy&#34;&#62;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;img src=&#34;themes/contextMenu/copy.png&#34; /&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Copiar&#60;/li&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;li id=&#34;paste&#34;&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;img src=&#34;themes/contextMenu/paste.png&#34; /&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Pegar&#60;/li&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;li id=&#34;delete&#34;&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;img src=&#34;themes/contextMenu/delete.png&#34; /&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Eliminar&#60;/li&#62;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/ul&#62;<br />&#160;&#160;&#160; &#60;/div&#62;<br />&#60;/body&#62;<br />&#60;/html&#62;</p>
</div>
<p>What&#39;s wrong ..&#160;</p>
</p>
<p>i&#39;m using jqgrid 3.8</p>
]]></description>
        	        	<pubDate>Mon, 27 Sep 2010 15:13:10 +0300</pubDate>
        </item>
</channel>
</rss>