<?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: problems with toolbar</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/problems-with-toolbar</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/problems-with-toolbar/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>pelirr on problems with toolbar</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problems-with-toolbar#p23506</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problems-with-toolbar#p23506</guid>
        	        	<description><![CDATA[<p>Hello again, I know what was the problem. I had to put following lines after all:</p>
</p>
<p>jQuery("#t_listadoGrid").append("&#60;input type=&#39;button&#39; value=&#39;Acciones&#39; style=&#39;height:20px;font-size:-3&#39;/&#62;");<br />&#160;&#160;&#160;&#160;&#160;jQuery("input","#t_listadoGrid").click(function(){<br />&#160;&#160;&#160;&#160;&#160;&#160;alert("a ver que tal");<br />&#160;&#160;&#160;&#160;&#160;&#160;var idSel = jQuery("#listadoGrid").jqGrid(&#39;getGridParam&#39;,&#39;selrow&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;if (idSel != null)<br />&#160;&#160;&#160;&#160;&#160;&#160;{<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;alert(&#39;fila seleccionada&#39;+idSel);<br />&#160;&#160;&#160;&#160;&#160;&#160;}<br />&#160;&#160;&#160;&#160;&#160;});</p>
</p>
<p>and no at the beginning.</p>
</p>
<p>Regards,</p></p>
]]></description>
        	        	<pubDate>Tue, 07 Jun 2011 12:11:16 +0300</pubDate>
        </item>
        <item>
        	<title>pelirr on problems with toolbar</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problems-with-toolbar#p23504</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problems-with-toolbar#p23504</guid>
        	        	<description><![CDATA[<p>Hello, I&#39;m trying to put one button in a toolbar on top the grid, but it doesn&#39;t work. I think I have the same that the demos. Here is my code:</p>
<p>...</p>
<p>jQuery("#t_listadoGrid").append("&#60;input type=&#39;button&#39; value=&#39;Acciones&#39; style=&#39;height:20px;font-size:-3&#39;/&#62;");<br />&#160;&#160;&#160;&#160;&#160;jQuery("input","#t_listadoGrid").click(function(){<br />&#160;&#160;&#160;&#160;&#160;&#160;alert("a ver que tal");<br />&#160;&#160;&#160;&#160;&#160;&#160;var idSel = jQuery("#listadoGrid").jqGrid(&#39;getGridParam&#39;,&#39;selrow&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;if (idSel != null)<br />&#160;&#160;&#160;&#160;&#160;&#160;{<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;alert(&#39;fila seleccionada&#39;+idSel);<br />&#160;&#160;&#160;&#160;&#160;&#160;}<br />&#160;&#160;&#160;&#160;&#160;});<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<br />&#160;&#160;&#160;&#160;&#160;jQuery("#listadoGrid").jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;<a href="/blog/&#39;/AODB2/realTime/arrivalFlight/NewArrivalFlight.action?accion=listar&#38;selectedPage=&#39;+paginaSeleccionada" target="_blank">url:&#39;/AODB2/realTime/arrivalFlight/NewArrivalFlight.action?accion=listar&#38;selectedPage=&#39;+paginaSeleccionada</a>,<br />&#160;&#160;&#160;&#160;&#160;&#160;datatype: "json",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;colNames:[&#160;"&#60;s:text name=""/&#62;",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;"&#60;s:text name="iataCompanyCodeFieldArrivalFlight"/&#62;","&#60;s:text name="flightNumberFieldArrivalFlight"/&#62;", <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;"&#60;s:text name="tailNumberFieldArrivalFlight"/&#62;","&#60;s:text name="joinedFieldArrivalFlight"/&#62;",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;"&#60;s:text name="runwayCodeFieldArrivalFlight"/&#62;","&#60;s:text name="statusCodeFieldArrivalFlight"/&#62;",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;"&#60;s:text name="arrivalSituationFieldArrivalFlight"/&#62;","&#60;s:text name="flightTypeCodeFieldArrivalFlight"/&#62;",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;"&#60;s:text name="airportArrivalCodeFieldArrivalFlight"/&#62;","&#60;s:text name="scheduledTimeFieldArrivalFlight"/&#62;",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;"&#60;s:text name="estimatedTimeFieldArrivalFlight"/&#62;"<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;colModel:[<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;{name:&#39;idArrivalFlight&#39;,index:&#39;idArrivalFlight&#39;, width:5, align:&#39;center&#39;, hidden:true},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;{name:&#39;iataCompanyCode&#39;,index:&#39;iataCompanyCode&#39;, width:140, align:&#39;center&#39;, sortable: false, editable:true, editrules:{required:true},formoptions:{elmprefix:"(*)"}},&#160;//editable:true sirve para que salga en las ventanas emergentes edit y add<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;{name:&#39;flightNumber&#39;,index:&#39;flightNumber&#39;, width:140, align:&#39;center&#39;, sortable:false, editable:true, editoptions:{size:40},editrules:{required:true},formoptions:{ elmprefix:"(*)"}},&#160;//editrules para validaciones<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;{name:&#39;tailNumber&#39;,index:&#39;tailNumber&#39;, width:140, align:&#39;center&#39;, editable:true, sortable:false},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;{name:&#39;joined&#39;,index:&#39;joined&#39;, width:140, align:&#39;center&#39;,editable:true, sortable:false,editrules:{required:true},formoptions:{ elmprefix:"(*)"},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;edittype: &#39;select&#39;, editoptions: {&#160;//transforma un campo normal en otro de tipo select<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; value: objJoined,&#160;&#160;//lista para el select<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; dataInit: function (elem) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var v = $(elem).val();&#160;//valor que se muestra por defecto<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#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;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;{name:&#39;runwayCode&#39;,index:&#39;runwayCode&#39;, width:140, align:&#39;center&#39;, editable:true, sortable:false},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;{name:&#39;statusCode&#39;,index:&#39;statusCode&#39;, width:140, align:&#39;center&#39;, editable:true, editoptions:{readonly:true}, sortable:false},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;{name:&#39;situationName&#39;,index:&#39;situationName&#39;, width:140, align:&#39;center&#39;, editable:true, editoptions:{readonly:true}, sortable:false},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;{name:&#39;flightTypeCode&#39;,index:&#39;flightTypeCode&#39;, width:140, align:&#39;center&#39;, editable:true,&#160; sortable:false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;edittype: &#39;select&#39;, editoptions: {&#160;//transforma un campo normal en otro de tipo select<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;value: objFlightType,&#160;&#160;//lista para el select<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;dataInit: function (elem) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;var v = $(elem).val();&#160;//valor que se muestra por defecto<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#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;&#160;&#160;&#160; &#160;&#160;&#160;&#160;}<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;{name:&#39;airportArrivalCode&#39;,index:&#39;airportArrivalCode&#39;, width:140, align:&#39;center&#39;, editable:true, editoptions:{readonly:true}, sortable:false},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;{name:&#39;scheduledTime&#39;,index:&#39;scheduledTime&#39;, width:140, align:&#39;center&#39;, editable:true, editoptions:{readonly:true}, sortable:false},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;{name:&#39;estimatedTime&#39;,index:&#39;estimatedTime&#39;, width:140, align:&#39;center&#39;, editable:true, editoptions:{readonly:true}, sortable:false}&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;],<br />&#160;&#160;&#160;&#160;&#160;&#160;rowNum:20,&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;pager: &#39;#pageGrid&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;sortname: &#39;Nombre&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;viewrecords: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortorder: "desc",&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jsonReader: {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;root: "rows",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;repeatitems : false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;page: "page",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;total: "total",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;records: "records",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;id: "0"&#160;&#160;//del objeto json, actua como id el primer elemento de rows&#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; editurl: &#39;/AODB2/realTime/arrivalFlight/ArrivalFlightUpdate.action&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; toolbar: [true,"top"],</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ...</p>
</p>
<p>Can someone tell me what is wrong? Thank you very much</p>
]]></description>
        	        	<pubDate>Tue, 07 Jun 2011 11:58:12 +0300</pubDate>
        </item>
</channel>
</rss>