<?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: Button "Edit Selected" not functional</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/button-edit-selected-not-functional</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/button-edit-selected-not-functional/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>maggie on Button "Edit Selected" not functional</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/button-edit-selected-not-functional#p3857</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/button-edit-selected-not-functional#p3857</guid>
        	        	<description><![CDATA[<p>Hello!</p>
<p>I put $(&#8221;#bedata&#8221;).click&#160; inside of ready. It works now! <img class="spSmiley" style="margin:0" title="Cool" src="/blog/wp-content/plugins/simple-forum/tinymce/plugins/emotions/img/smiley-cool.gif" border="0" alt="Cool" />!</p>
<p>Thank you so much for your help!!!</p>
<p>Maggie</p>
]]></description>
        	        	<pubDate>Wed, 07 Jan 2009 11:26:24 +0200</pubDate>
        </item>
        <item>
        	<title>MamaliFrenchi on Button "Edit Selected" not functional</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/button-edit-selected-not-functional#p3856</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/button-edit-selected-not-functional#p3856</guid>
        	        	<description><![CDATA[<p>I did not go through your entire code, but it looks like your $(&#8221;#bedata&#8221;).click code is outsite of jQuery(document).ready(function(){ });</p>
<p>it should be inside of ready, or apply &#60;input type=&#8221;BUTTON&#8221; id=&#8221;bedata&#8221; value=&#8221;Edit Selected&#8221; onclick=&#39;yourfunction();&#39;&#160;/&#62; then define yourfunction to call editGridRow. Just&#160;move }); before $(&#39;#bedata&#39;).click&#160;at the end of your script.</p>
]]></description>
        	        	<pubDate>Wed, 07 Jan 2009 10:57:10 +0200</pubDate>
        </item>
        <item>
        	<title>maggie on Button "Edit Selected" not functional</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/button-edit-selected-not-functional#p3855</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/button-edit-selected-not-functional#p3855</guid>
        	        	<description><![CDATA[<p>I added the alert message but nothing happened when I click on the button. Here&#160;are my html codes:</p>
<p>&#60;html&#62;<br />&#160;&#60;head&#62;<br />&#160;&#160;&#60;title&#62;jqGrid Demo&#60;/title&#62;<br />&#160;&#160;&#60;link rel="stylesheet" type="text/css" media="screen"<br />&#160;&#160;&#160;href="jquery/themes/basic/grid.css" /&#62;<br />&#160;&#160;&#60;link rel="stylesheet" type="text/css" media="screen"<br />&#160;&#160;&#160;href="jquery/themes/jqModal.css" /&#62;<br />&#160;&#160;&#160;<br />&#160;&#160;&#60;script src="jquery/jquery.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160;&#160;&#60;script src="jquery/jquery.jqGrid.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160;&#160;&#60;script src="jquery/js/jqModal.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160;&#160;&#60;script src="jquery/js/jqDnR.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160;&#160;&#60;script type="text/javascript"&#62; <br />&#160;&#160;jQuery(document).ready(function(){ <br />&#160;&#160;&#160;&#160;&#160; jQuery("#editgrid").jqGrid({ <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <a href="&#39;http://localhost:8080/ReportsPortal/servlet/testGrid&#39;" target="_blank">url:&#39;</a><a href="http://localhost:8080/ReportsPortal/servlet/testGrid&#038;#39" rel="nofollow" target="_blank"><a href="http://localhost:8080/ReportsP" rel="nofollow">http://localhost:8080/ReportsP</a>.....d&#038;#39</a>;, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: &#39;xml&#39;, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; mtype: &#39;GET&#39;, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames:[&#39;Inv No&#39;,&#39;Date&#39;, &#39;Amount&#39;,&#39;Tax&#39;,&#39;Total&#39;,&#39;Notes&#39;], <br />&#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; {name:&#39;invid&#39;, index:&#39;invid&#39;, width:60, editable:false,editoptions:{readonly:true,size:10}}, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;invdate&#39;, index:&#39;invdate&#39;, width:90, editable:true,editoptions:{size:25}}, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;amount&#39;, index:&#39;amount&#39;, width:80, align:&#39;right&#39;, editable:true,editoptions:{size:25}},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;tax&#39;, index:&#39;tax&#39;, width:80, align:&#39;right&#39;, editable:true,editoptions:{size:25}}, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;total&#39;, index:&#39;total&#39;, width:80, align:&#39;right&#39;, editable:true,editoptions:{size:25}}, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;note&#39;, index:&#39;note&#39;, width:150, sortable:false, editable: true,edittype:"textarea", editoptions:{rows:"2",cols:"20"}} ],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager: jQuery(&#39;#pager&#39;), <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum:10, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowList:[10,20,30], <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: &#39;invid&#39;, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortorder: "desc", <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; imgpath: &#39;jquery/themes/basic/images&#39;, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption: &#39;My first grid&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; editurl:"someurl.jsp"<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#bedata").click(function(){<br />&#160;&#160;&#160;&#160;&#160; var gr = jQuery("#editgrid").getGridParam(&#39;selrow&#39;);<br />&#160;&#160;&#160;&#160;&#160; alert ("rowid" + gr);<br />&#160;&#160;&#160;//if( gr != null ) jQuery("#editgrid").editGridRow(gr,&#160; {height:280,reloadAfterSubmit:false});<br />&#160;&#160;&#160;&#160;&#160; //else alert("Please Select Row");<br />&#160;&#160; &#160;alert ("test!");<br />&#160;&#160;});<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/script&#62;<br />&#160;&#60;/head&#62;<br />&#160;&#60;body&#62;<br />&#160;&#160;&#60;table id="editgrid" class="scroll" cellpadding="0" cellspacing="0"&#62;&#60;/&#62;&#60;/table&#62;<br />&#160;&#160;&#60;div id="pager" class="scroll" style="text-align: center;"&#62;&#60;/div&#62;<br />&#160;&#160;<br />&#160;&#160;&#60;input type="BUTTON" id="bedata" value="Edit Selected" /&#62;<br />&#160;&#160;<br />&#160;&#160;<br />&#160;&#60;/body&#62;<br />&#60;/html&#62;</p>
<p>&#160;Do I miss including some javascripts?</p>
<p>Thanks! Maggie</p></p>
]]></description>
        	        	<pubDate>Wed, 07 Jan 2009 08:56:12 +0200</pubDate>
        </item>
        <item>
        	<title>MamaliFrenchi on Button "Edit Selected" not functional</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/button-edit-selected-not-functional#p3851</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/button-edit-selected-not-functional#p3851</guid>
        	        	<description><![CDATA[<p>What&#39;s your html code for jqGrid? add alert(gr); after the&#160; gr = jQuery(&#8221;#editgrid&#8221;).getGridParam(&#39;selrow&#39;); to see if you get the selected row ID, also use jut &#39; instead of " everywhere sometimes it matters. your code should work. I am using exactly the same way from a button in my pager</p>
]]></description>
        	        	<pubDate>Tue, 06 Jan 2009 20:50:54 +0200</pubDate>
        </item>
        <item>
        	<title>maggie on Button "Edit Selected" not functional</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/button-edit-selected-not-functional#p3848</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/button-edit-selected-not-functional#p3848</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I want to set up form editing. I tried to use a button "Edit Selected" as the demo. But the button is not functional.</p>
<p>the html &#160;code for the button:</p>
<p>&#60;input type="BUTTON" id="bedata" value="Edit Selected" /&#62;</p>
<p>the javascript :</p>
<p>$("#bedata").click(function(){<br />&#160;var gr = jQuery("#editgrid").getGridParam(&#39;selrow&#39;);<br />&#160;if( gr != null ) jQuery("#editgrid").editGridRow(gr,{height:280,reloadAfterSubmit:false});<br />&#160;else alert("Please Select Row");<br />});</p>
<p>Any ideas? Thanks!</p>
<p>Maggie</p>
]]></description>
        	        	<pubDate>Tue, 06 Jan 2009 18:53:47 +0200</pubDate>
        </item>
</channel>
</rss>