<?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: in-row buttons help please</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/in-row-buttons-help-please</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/in-row-buttons-help-please/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>mawdryn on in-row buttons help please</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/in-row-buttons-help-please#p25959</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/in-row-buttons-help-please#p25959</guid>
        	        	<description><![CDATA[<p>Hi all,</p>
<p>I&#39;m trying to get external edit links to work in jQgrid 4.3.1, but to no avail.</p>
<p>I&#39;ve followed the example at <a href="http://trirand.com/blog/jqgrid/jqgrid.html&#160;under" rel="nofollow" target="_blank"><a href="http://trirand.com/blog/jqgrid" rel="nofollow">http://trirand.com/blog/jqgrid</a>.....nbsp;under</a> Row Editing -&#62; Custom Edit,<br /> however I am unable to get the actual link to appear. I get the column, but it is empty.</p>
<p>The data grid itself displays correctly.</p>
<p>My troubleshooting has led me to believe that the problem is relating to using XML data. All of the examples <br />I have seen use Local or JSON data.&#160;</p>
<pre id="line1">I&#39;ve noticed that if I were to change my code from XML to Local, it works perfectly fine&#160;</pre>
<pre id="line1">(although local is not an option - being a database driven site)...</pre>
<pre id="line1">Any assistance appreciated.<br /><br />Edit: Sorry guys, this has to be the worst wysiwtf editor I&#39;ve ever seen... it&#39;s just not displaying right for me.<br />&#160;</pre>
<p>My HTML code is: (This is a completely stripped down test page)</p>
<pre id="line1"><p>&#60;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"&#62;<br /> &#60;html&#62;<br /> &#60;head&#62;<br /> &#60;title&#62;Test Page&#60;/title&#62;<br /> &#60;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/&#62;<br /> &#60;script src="js/jquery-1.6.2.min.js"&#62;&#60;/script&#62;<br /> &#60;link rel="stylesheet" href="js/jquery.jqGrid-4.3.1/css/ui.jqgrid.css"&#62;<br /> &#60;link rel="stylesheet" href="js/jquery.jqGrid-4.3.1/css/jquery-ui-1.8.17.custom.css"&#62;<br /> &#60;script src="js/jquery.jqGrid-4.3.1/js/i18n/grid.locale-en.js"&#62;&#60;/script&#62;<br /> &#60;script src="js/jquery.jqGrid-4.3.1/js/jquery.jqGrid.min.js"&#62;&#60;/script&#62;<br /> &#60;/head&#62;</p>
<p>&#60;body&#62;<br /> &#60;table id="otherContacts"&#62;&#60;tr&#62;&#60;td/&#62;&#60;/tr&#62;&#60;/table&#62;<br /> &#60;div&#62;&#60;/div&#62;&#60;/fieldset&#62;</p>
<p>&#60;script&#62;<br /> $("#otherContacts").jqGrid({<br /> url:&#39;sql2xml.php?query=grid&#38;type=coreSite&#38;source=coreContact&#38;limiter=parentid,1&#39;,<br /> datatype: "xml",<br /> mtype: &#39;GET&#39;,<br /> colNames:[&#39;ID&#39;,&#39;Salutation&#39;,&#39;First Name&#39;,&#39;Last Name&#39;, &#39;Title&#39;,&#39;Edit&#39;],<br /> colModel:[{name:&#39;id&#39;,index:&#39;id&#39;,width:10},<br /> {name:&#39;salutation&#39;,index:&#39;salutation&#39;,width:50},<br /> {name:&#39;firstname&#39;,index:&#39;firstname&#39;,width:90},<br /> {name:&#39;lastname&#39;,index:&#39;lastname&#39;,width:90},<br /> {name:&#39;title&#39;,index:&#39;title&#39;,width:90},<br /> {name:&#39;edit&#39;,index:&#39;edit&#39;,width:20}],<br /> width: 600,<br /> height: 100,<br /> pager: &#39;#otherContacts_container&#39;,<br /> rowNum:10,<br /> rowList:[10,25,50],<br /> sortname: &#39;id&#39;,<br /> sortorder: &#39;desc&#39;,<br /> viewrecords: true,<br /> gridview: true,<br /> scrollOffset: 0,</p>
<p>&#160;gridComplete: function(){<br /> var ids = $("#otherContacts").jqGrid(&#39;getDataIDs&#39;);<br /> for(var i=0;i &#60; ids.length;i++){<br /> var cl = ids[i];<br /> be = "&#60;a href="#" onclick="window.location.href=&#39;editItem.php?id="+cl+"&#39;"&#62;Edit&#60;/a&#62;";<br /> $(&#39;#otherContacts&#39;).jqGrid(&#39;setRowData&#39;,ids[i],{edit:be});<br /> }<br /> }<br /> });<br /> $(&#39;#otherContacts&#39;).jqGrid(&#39;hideCol&#39;, [&#39;id&#39;]);<br /> $(&#39;#otherContacts&#39;).jqGrid(&#39;navGrid&#39;,"#otherContacts_container",{edit:false,add:false,del:false});<br /> &#60;/script&#62;</p>
<p>&#160;&#60;/body&#62;<br /> &#60;/html&#62;</p></pre>
]]></description>
        	        	<pubDate>Thu, 16 Feb 2012 07:11:03 +0200</pubDate>
        </item>
</channel>
</rss>