<?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: navGrid buttons redirecting</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/navgrid-buttons-redirecting</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/navgrid-buttons-redirecting/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>viktor on navGrid buttons redirecting</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/navgrid-buttons-redirecting#p10155</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/navgrid-buttons-redirecting#p10155</guid>
        	        	<description><![CDATA[<p>I try the following:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4231' value='Select Code' data-codeid='sfcode4231' /></p>
<div class='sfcode' id='sfcode4231'>&#60;script type="text/javascript"&#62; <br />jojo = function() {<br />&#160;&#160;&#160; alert(&#39;jojo&#39;);<br />}<br />$(document).ready(function()<br />{<br />&#160;&#160;&#160; $("#list1").jqGrid({<br />&#160;&#160;&#160; &#160;&#160;&#160; url:&#39;{#ROOT_DIR#}/data/xml/filemanager-lista.php&#39;, <br />&#160;&#160;&#160; &#160;&#160;&#160; datatype: "xml", <br />&#160;&#160;&#160; &#160;&#160;&#160; colNames:[&#39;Desde&#39;,&#39;Archivo&#39;, &#39;Descripcion&#39;, &#39;Categorias&#39;, &#39;De&#39;, &#39;Para&#39;], <br />&#160;&#160;&#160; &#160;&#160;&#160; colModel:[ <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;Desde&#39;,index:&#39;file_created&#39;, width:30}, <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;Archivo&#39;,index:&#39;file_title&#39;, width:100, editable:true, editoptions:{size:25}}, <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;Descripcion&#39;,index:&#39;file_desc&#39;, width:100},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;Categorias&#39;,index:&#39;&#39;, width:100},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;De&#39;,index:&#39;&#39;, width:40},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;Para&#39;,index:&#39;&#39;,width:40}<br />&#160;&#160;&#160; &#160;&#160;&#160; ],<br />&#160;&#160;&#160; &#160;&#160;&#160; rowNum:10,<br />&#160;&#160;&#160; &#160;&#160;&#160; autowidth: true, <br />&#160;&#160;&#160; &#160;&#160;&#160; rowList:[10,20,30], <br />&#160;&#160;&#160; &#160;&#160;&#160; pager: jQuery(&#39;#pager1&#39;), <br />&#160;&#160;&#160; &#160;&#160;&#160; sortname: &#39;file_created&#39;, <br />&#160;&#160;&#160; &#160;&#160;&#160; viewrecords: true, <br />&#160;&#160;&#160; &#160;&#160;&#160; sortorder: "desc",<br />&#160;&#160;&#160; &#160;&#160;&#160; height: "300px"<br />&#160;&#160;&#160; }).navGrid(<br />&#160;&#160;&#160; &#160;&#160;&#160; &#39;#pager1&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; {search:true}, // opciones<br />&#160;&#160;&#160; &#160;&#160;&#160; {height:280, reloadAfterSubmit:false, beforeShowForm:jojo}, // opciones edicion<br />&#160;&#160;&#160; &#160;&#160;&#160; {height:280, reloadAfterSubmit:false}, // opciones agregar<br />&#160;&#160;&#160; &#160;&#160;&#160; {reloadAfterSubmit:false}, // opciones eliminar<br />&#160;&#160;&#160; &#160;&#160;&#160; {searchtext:"Buscar..."} // opciones buscador<br />&#160;&#160;&#160; )<br />});<br />&#60;/script&#62;</div>
<p>Here, when you click on the "edit" button, it displays the "jojo" message alert.</p>
<p>Then I&#39;ve tried:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8188' value='Select Code' data-codeid='sfcode8188' /></p>
<div class='sfcode' id='sfcode8188'>&#60;script type="text/javascript"&#62; <br />jojo = function(data) {<br />&#160;&#160;&#160; alert(&#39;jojo &#39;+data);<br />}<br />$(document).ready(function()<br />{<br />&#160;&#160;&#160; $("#list1").jqGrid({<br />&#160;&#160;&#160; &#160;&#160;&#160; url:&#39;{#ROOT_DIR#}/data/xml/filemanager-lista.php&#39;, <br />&#160;&#160;&#160; &#160;&#160;&#160; datatype: "xml", <br />&#160;&#160;&#160; &#160;&#160;&#160; colNames:[&#39;Desde&#39;,&#39;Archivo&#39;, &#39;Descripcion&#39;, &#39;Categorias&#39;, &#39;De&#39;, &#39;Para&#39;], <br />&#160;&#160;&#160; &#160;&#160;&#160; colModel:[ <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;Desde&#39;,index:&#39;file_created&#39;, width:30}, <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;Archivo&#39;,index:&#39;file_title&#39;, width:100, editable:true, editoptions:{size:25}}, <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;Descripcion&#39;,index:&#39;file_desc&#39;, width:100},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;Categorias&#39;,index:&#39;&#39;, width:100},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;De&#39;,index:&#39;&#39;, width:40},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;Para&#39;,index:&#39;&#39;,width:40}<br />&#160;&#160;&#160; &#160;&#160;&#160; ],<br />&#160;&#160;&#160; &#160;&#160;&#160; rowNum:10,<br />&#160;&#160;&#160; &#160;&#160;&#160; autowidth: true, <br />&#160;&#160;&#160; &#160;&#160;&#160; rowList:[10,20,30], <br />&#160;&#160;&#160; &#160;&#160;&#160; pager: jQuery(&#39;#pager1&#39;), <br />&#160;&#160;&#160; &#160;&#160;&#160; sortname: &#39;file_created&#39;, <br />&#160;&#160;&#160; &#160;&#160;&#160; viewrecords: true, <br />&#160;&#160;&#160; &#160;&#160;&#160; sortorder: "desc",<br />&#160;&#160;&#160; &#160;&#160;&#160; height: "300px"<br />&#160;&#160;&#160; }).navGrid(<br />&#160;&#160;&#160; &#160;&#160;&#160; &#39;#pager1&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; {search:true}, // opciones<br />&#160;&#160;&#160; &#160;&#160;&#160; {height:280, reloadAfterSubmit:false, beforeShowForm:jojo(data)}, // opciones edicion<br />&#160;&#160;&#160; &#160;&#160;&#160; {height:280, reloadAfterSubmit:false}, // opciones agregar<br />&#160;&#160;&#160; &#160;&#160;&#160; {reloadAfterSubmit:false}, // opciones eliminar<br />&#160;&#160;&#160; &#160;&#160;&#160; {searchtext:"Buscar..."} // opciones buscador<br />&#160;&#160;&#160; )<br />});<br />&#60;/script&#62;</div>
<p>... and... the message alert shows up before the grid.</p>
<p>Solutions?!!!! Thanksss!!</p>
]]></description>
        	        	<pubDate>Fri, 25 Sep 2009 10:25:29 +0300</pubDate>
        </item>
        <item>
        	<title>viktor on navGrid buttons redirecting</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/navgrid-buttons-redirecting#p10154</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/navgrid-buttons-redirecting#p10154</guid>
        	        	<description><![CDATA[<p>Another question about navGrid buttons (add, edit, delete). It&#39;s possible to redirect to a page when I click one of this buttons?</p>
<p>IE: When I press the "edit" button, i would like it to redirect me to "www.server.com/edit.php?id=1"</p>
<p>Thanks!</p>
]]></description>
        	        	<pubDate>Fri, 25 Sep 2009 10:03:49 +0300</pubDate>
        </item>
</channel>
</rss>