<?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: delete row with classic asp</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/delete-row-with-classic-asp</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/delete-row-with-classic-asp/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>efet on delete row with classic asp</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/delete-row-with-classic-asp#p15675</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/delete-row-with-classic-asp#p15675</guid>
        	        	<description><![CDATA[<p>I am still using the version 3.1. I could setup to edit rows through the grid but I could not setup the deleting feature.</p>
<p>I am pasting my codes here. Please tell me what changes needed to make the delete row feature work.</p>
<p>news.asp</p>
<p>&#160;&#160;&#160; &#60;script type="text/javascript"&#62;</p>
<p>&#160;&#160; &#160;var lastsel;<br />&#160;&#160; &#160;<br />$(function() {<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;<br />&#160;&#160; &#160;$("#list").jqGrid({<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;url: &#39;/FLPM/cp/news.cs.asp?Process=ViewNews&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;datatype: &#39;xml&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;mtype: &#39;Get&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;height: &#39;100%&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;colNames: [&#39;Actions&#39;,&#39;ID #&#39;,&#39;Title&#39;, &#39;Category Name&#39;, &#39;Active&#39;, &#39;Date Entered&#39;],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;colModel: [<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;Actions&#39;, index:&#39;Actions&#39;, width:100, sortable:false, search:false},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;ID&#39;, index:&#39;ID&#39;, width:30},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;Title&#39;, index:&#39;Title&#39;, width:360},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;Category&#39;, index:&#39;Category&#39;, width:115},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;Active&#39;, index:&#39;Active&#39;, width:40, editable:true, edittype:"select", editoptions:{value:"1:Yes;0:No"}},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;Date&#39;, index:&#39;Date&#39;, width:126}, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;pager: jQuery(&#39;#pager&#39;),<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;rowNum: 10,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;rowList: [10,20,30],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;sortname: &#39;Date&#39;, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;sortorder: &#39;desc&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;viewrecords: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;imgpath: &#39;js/jqGrid/themes/basic/images&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;onSelectRow: function(id) { <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;if(id &#38;&#38; id!==lastsel) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$(&#39;#list&#39;).restoreRow(lastsel); <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$(&#39;#list&#39;).editRow(id,true); <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;lastsel=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;}, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;loadComplete: function(){ <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var ids = jQuery("#list").getDataIDs(); <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;for(var i=0;i&#60;ids.length;i++){ <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var cl = ids[i]; <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;de = "&#60;input style=&#39;height:25px;width:25px;&#39; type=&#39;button&#39; value=&#39;DE&#39; onclick=location.href=&#39;?Section=news&#38;Process=EditNews&#38;NEWSID="+cl+"&#39;; /&#62;"; &#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;be = "&#60;input style=&#39;height:25px;width:25px;&#39; type=&#39;button&#39; value=&#39;E&#39; onclick=jQuery(&#39;#list&#39;).editRow("+cl+"); &#62;&#60;/ids&#62;"; <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;se = "&#60;input style=&#39;height:25px;width:25px;&#39; type=&#39;button&#39; value=&#39;S&#39; onclick=jQuery(&#39;#list&#39;).saveRow("+cl+"); /&#62;"; <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;ce = "&#60;input style=&#39;height:25px;width:25px;&#39; type=&#39;button&#39; value=&#39;C&#39; onclick=jQuery(&#39;#list&#39;).restoreRow("+cl+"); /&#62;"; <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;jQuery("#list").setRowData(ids[i],{Actions:de+be+se+ce}) <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;} <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;}, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;editurl: "news.cs.asp?Process=EditQNews",&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;}).navGrid("#pager",{edit:true,add:false,del:true}); &#160;&#160; &#160;</p>
<p>});<br />&#160;&#160; &#160;&#60;/script&#62;</p>
</p>
<p>&#160;&#160; &#160;&#160;&#160;&#160; &#60;table id="list" class="scroll"&#62;&#60;/table&#62; <br />&#160;&#160; &#160;&#160;&#160; &#160;&#60;div id="pager" class="scroll"&#62;&#60;/div&#62;</p>
</p>
<p>news.cs.asp</p>
</p>
<p>&#160;&#160; &#160;&#160;&#160;&#160; Case "EditQNews"</p>
</p>
<p>&#160;&#160;&#160; NEWSID&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;= Request.Form("ID")<br />&#160;&#160; &#160;ACTIVE&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;= Request.Form("ACTIVE")</p>
<p>&#160;&#160; &#160;UCSQL = ("UPDATE NEWS SET NEWSACTIVE = &#39;"&#38; NEWSACTIVE &#38;"&#39; WHERE NEWSID = " &#38; NEWSID &#38; "&#160; ") &#160;<br />&#160;&#160; &#160;Set objUpdatenNews = objConn.execute(UCSQL)&#160;</p>
]]></description>
        	        	<pubDate>Sun, 14 Mar 2010 02:42:36 +0200</pubDate>
        </item>
</channel>
</rss>