<?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 URL is not Replacing Edit URL</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/delete-url-is-not-replacing-edit-url</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-url-is-not-replacing-edit-url/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>sdyke1 on Delete URL is not Replacing Edit URL</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/delete-url-is-not-replacing-edit-url#p29978</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/delete-url-is-not-replacing-edit-url#p29978</guid>
        	        	<description><![CDATA[<p>Thanks that worked great.</p>
]]></description>
        	        	<pubDate>Mon, 16 Dec 2013 16:45:00 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Delete URL is not Replacing Edit URL</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/delete-url-is-not-replacing-edit-url#p29966</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/delete-url-is-not-replacing-edit-url#p29966</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>In your code you call two times delGridRow - one time separatley with the method delGridRow and one time indeirectly throught the navGrid. navGrid call again delGrid row.</p>
</p>
<p>In order to do what you want you will need to comment or delete the line with</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4605' value='Select Code' data-codeid='sfcode4605' /></p>
<div class='sfcode' id='sfcode4605'>
<p>$("#list2&#8243;).jqGrid(&#39;delGridRow&#39;, selID, {url: &#39;/QMSWebApp/DCRIndexDeleteServlet&#39;} );</p>
</div>
<p>and do this</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit194' value='Select Code' data-codeid='sfcode194' /></p>
<div class='sfcode' id='sfcode194'>
<p>$("#list2&#8243;).jqGrid(&#39;navGrid&#39;,&#39;#pager2&#39;,{edit:false,add:false,del:true},</p>
<p>{},</p>
<p>{},</p>
<p>{url: "your_url_here"}</p>
<p>);</p>
</div>
<p>More you can find <a href="/jqgridwiki/doku.php?id=wiki:navigator&#38;s[]=navgrid" target="_blank">here</a></p>
</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Sat, 14 Dec 2013 13:09:03 +0200</pubDate>
        </item>
        <item>
        	<title>sdyke1 on Delete URL is not Replacing Edit URL</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/delete-url-is-not-replacing-edit-url#p29961</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/delete-url-is-not-replacing-edit-url#p29961</guid>
        	        	<description><![CDATA[<table id="list2" border="0">
<tbody>
</tbody>
</table>
<p><!-- 	$(document).ready(function(){ 		var selID = ""; 		$("#list2").jqGrid({    		url:&#39;/QMSWebApp/DCRQueueServlet&#39;,    		editurl:&#39;/QMSWebApp/DCRIndexEditServlet&#39;,    		datatype: "json", 		height: "auto", 		colNames:[&#39;Index#&#39;,&#39;Status&#39;,&#39;Drawing#&#39;,&#39;Source&#39;,&#39;Requester&#39;,&#39;Request Date&#39;,&#39;Responsibility&#39;,&#39;Actions&#39;,&#39;MngrAccess&#39;,&#39;EngAccess&#39;],    		colModel:[    			{name:&#39;id&#39;, index:&#39;id&#39;, width:55,    			 cellattr: function(rowId, val, rawObject, cm, rdata){    			 if(rawObject.status==1 &#038;&#038; (rawObject.mngraccess &#124;&#124; rawObject.engaccess)){return &#39;class="redBG editthis"&#39;;}    			 else if(rawObject.status==1 &#038;&#038; !rawObject.mngraccess &#038;&#038; !rawObject.engaccess){return &#39;class="redBG printthis"&#39;;}    			 else if(rawObject.status==2 &#038;&#038; (rawObject.mngraccess &#124;&#124; rawObject.engaccess)){return &#39;class="blueBG editthis"&#39;;}    			 else if(rawObject.status==2 &#038;&#038; !rawObject.mngraccess &#038;&#038; !rawObject.engaccess){return &#39;class="blueBG printthis"&#39;;}    			 else if(rawObject.status==3 &#038;&#038; (rawObject.mngraccess &#124;&#124; rawObject.engaccess)){return &#39;class="greenBG editthis"&#39;;}    			 else if(rawObject.status==3 &#038;&#038; !rawObject.mngraccess &#038;&#038; !rawObject.engaccess){return &#39;class="greenBG printthis"&#39;;}    			 else if(rawObject.status==4 &#038;&#038; (rawObject.mngraccess &#124;&#124; rawObject.engaccess)){return &#39;class="greenBG editthis"&#39;;}    			 else if(rawObject.status==4 &#038;&#038; !rawObject.mngraccess &#038;&#038; !rawObject.engaccess){return &#39;class="greenBG printthis"&#39;;}    			 else{return &#39;class="printthis"&#39;;}}},    			{name:&#39;status&#39;, index:&#39;status&#39;, width:55, hidden: true},    			{name:&#39;drawingno&#39;, index:&#39;drawingno&#39;, width:90},    			{name:&#39;source&#39;,index:&#39;source&#39;, width:90},    			{name:&#39;requester&#39;,index:&#39;requester&#39;, width:90},    			{name:&#39;request_date&#39;,index:&#39;request_date&#39;, width:90},    			{name:&#39;responsibility&#39;,index:&#39;responsibility&#39;, width:90},    			{name:&#39;actions&#39;,index:&#39;actions&#39;, width:200},    			{name:&#39;mngraccess&#39;,index:&#39;mngraccess&#39;, width:90, hidden: true},    			{name:&#39;engaccess&#39;,index:&#39;engaccess&#39;, width:90, hidden: true},    			],    			onSelectRow: function(id){selID = id;},    			rowNum:20,    			rowList:[10,20,30],    			loadonce: true,    			pager: &#39;#pager2&#39;,    			viewrecords: true,    			gridview: true,    			caption:"Drawing Change Request Records"    				 		}); 		 		$("#list2").jqGrid(&#39;delGridRow&#39;, selID, {url: &#39;/QMSWebApp/DCRIndexDeleteServlet&#39;} ); 		$("#list2").jqGrid(&#39;navGrid&#39;,&#39;#pager2&#39;,{edit:false,add:false,del:true}); 						 	}); 		 	 // --></p>
<p>My EditURL is not being replaced by DeleteURL.</p>
</p>
<p>&#60;table id="list2"&#62;&#60;/table&#62;</p>
<p>&#60;div id="pager2"&#62;&#60;/div&#62;</p>
</p>
<p>&#60;script type="text/javascript"&#62;</p>
<p>$(document).ready(function(){</p>
<p>var selID = "";</p>
<p>$("#list2").jqGrid({</p>
<p>url:&#39;/QMSWebApp/DCRQueueServlet&#39;,</p>
<p>editurl:&#39;/QMSWebApp/DCRIndexEditServlet&#39;,</p>
<p>datatype: "json",</p>
<p>height: "auto",</p>
<p>colNames:[&#39;Index#&#39;,&#39;Status&#39;,&#39;Drawing#&#39;,&#39;Source&#39;,&#39;Requester&#39;,&#39;Request Date&#39;,&#39;Responsibility&#39;,&#39;Actions&#39;,&#39;MngrAccess&#39;,&#39;EngAccess&#39;],</p>
<p>colModel:[</p>
<p>{name:&#39;id&#39;, index:&#39;id&#39;, width:55,</p>
<p>cellattr: function(rowId, val, rawObject, cm, rdata){</p>
<p>if(rawObject.status==1 &#38;&#38; (rawObject.mngraccess &#124;&#124; rawObject.engaccess)){return &#39;class="redBG editthis"&#39;;}</p>
<p>else if(rawObject.status==1 &#38;&#38; !rawObject.mngraccess &#38;&#38; !rawObject.engaccess){return &#39;class="redBG printthis"&#39;;}</p>
<p>else if(rawObject.status==2 &#38;&#38; (rawObject.mngraccess &#124;&#124; rawObject.engaccess)){return &#39;class="blueBG editthis"&#39;;}</p>
<p>else if(rawObject.status==2 &#38;&#38; !rawObject.mngraccess &#38;&#38; !rawObject.engaccess){return &#39;class="blueBG printthis"&#39;;}</p>
<p>else if(rawObject.status==3 &#38;&#38; (rawObject.mngraccess &#124;&#124; rawObject.engaccess)){return &#39;class="greenBG editthis"&#39;;}</p>
<p>else if(rawObject.status==3 &#38;&#38; !rawObject.mngraccess &#38;&#38; !rawObject.engaccess){return &#39;class="greenBG printthis"&#39;;}</p>
<p>else if(rawObject.status==4 &#38;&#38; (rawObject.mngraccess &#124;&#124; rawObject.engaccess)){return &#39;class="greenBG editthis"&#39;;}</p>
<p>else if(rawObject.status==4 &#38;&#38; !rawObject.mngraccess &#38;&#38; !rawObject.engaccess){return &#39;class="greenBG printthis"&#39;;}</p>
<p>else{return &#39;class="printthis"&#39;;}}},</p>
<p>{name:&#39;status&#39;, index:&#39;status&#39;, width:55, hidden: true},</p>
<p>{name:&#39;drawingno&#39;, index:&#39;drawingno&#39;, width:90},</p>
<p>{name:&#39;source&#39;,index:&#39;source&#39;, width:90},</p>
<p>{name:&#39;requester&#39;,index:&#39;requester&#39;, width:90},</p>
<p>{name:&#39;request_date&#39;,index:&#39;request_date&#39;, width:90},</p>
<p>{name:&#39;responsibility&#39;,index:&#39;responsibility&#39;, width:90},</p>
<p>{name:&#39;actions&#39;,index:&#39;actions&#39;, width:200},</p>
<p>{name:&#39;mngraccess&#39;,index:&#39;mngraccess&#39;, width:90, hidden: true},</p>
<p>{name:&#39;engaccess&#39;,index:&#39;engaccess&#39;, width:90, hidden: true},</p>
<p>],</p>
<p>onSelectRow: function(id){selID = id;},</p>
<p>rowNum:20,</p>
<p>rowList:[10,20,30],</p>
<p>loadonce: true,</p>
<p>pager: &#39;#pager2&#39;,</p>
<p>viewrecords: true,</p>
<p>gridview: true,</p>
<p>caption:"Drawing Change Request Records"</p>
</p>
<p>});</p>
</p>
<p>$("#list2").jqGrid(&#39;delGridRow&#39;, selID, {url: &#39;/QMSWebApp/DCRIndexDeleteServlet&#39;} );</p>
<p>$("#list2").jqGrid(&#39;navGrid&#39;,&#39;#pager2&#39;,{edit:false,add:false,del:true});</p>
</p>
<p>});</p>
<p>&#60;/script&#62;</p>
]]></description>
        	        	<pubDate>Thu, 12 Dec 2013 22:18:07 +0200</pubDate>
        </item>
</channel>
</rss>