<?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: editable column is not posted as arg to the server</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/editable-column-is-not-posted-as-arg-to-the-server</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/bugs/editable-column-is-not-posted-as-arg-to-the-server/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>JQGRID_Fan on editable column is not posted as arg to the server</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/editable-column-is-not-posted-as-arg-to-the-server#p10483</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/editable-column-is-not-posted-as-arg-to-the-server#p10483</guid>
        	        	<description><![CDATA[<p>ok....I&#39;ve finally come up with a work able solution to end this saga.</p>
<p>if you search the web, the issue of trying to use jqGrid with multiple selects that dynmically load based on the values of a chained series of select elements is pretty common.&#160; And while some people claim to have this working I haven&#39;t actually seen a working example (i&#39;m sure there are lots).</p>
<p>for example someone had this post with a similar issue:<br /><a href="http://geekswithblogs.net/renso/archive/2009/07/02/jqgrid-dynamically-loading-select-options.aspx#" rel="nofollow" target="_blank"><a href="http://geekswithblogs.net/rens" rel="nofollow">http://geekswithblogs.net/rens</a>.....ions.aspx#</a></p>
<p>Anyway, using the information found on these two sites (thanks!!):</p>
<p><a href="http://www.xml.com/pub/a/2007/10/10/jquery-and-xml.html" rel="nofollow" target="_blank"><a href="http://www.xml.com/pub/a/2007/" rel="nofollow">http://www.xml.com/pub/a/2007/</a>.....d-xml.html</a></p>
<p><a href="http://www.ajaxprojects.com/ajax/tutorialdetails.php?itemid=688" rel="nofollow" target="_blank"><a href="http://www.ajaxprojects.com/aj" rel="nofollow">http://www.ajaxprojects.com/aj</a>.....itemid=688</a></p>
<p>I came up with a solution that works for me.&#160; I&#39;m posting the result in case any one has a similar need or has a better idea:</p>
<p>from the server I return this:</p>
<p>&#39;&#60;select&#62;<br />&#60;option value=&#39;1&#39;&#62;number1&#60;/option&#62;<br />&#60;option value=&#39;2&#39;&#62;number2&#60;/option&#62;<br />&#60;/select&#62;&#39;</p>
<p>encoded as &#39;text/xml&#39; from my .NET c# asp.net mvc application.</p>
<p>the column model has to look something like this:<br />colModel: [<br />{ name: &#39;Project&#39;, index: &#39;Project&#39;, width: 200, editable: true, edittype: "select", align: &#39;right&#39;, editoptions: { size: 1, dataUrl: &#39;/GridDataGetProjects&#39;,<br />&#160;&#160;&#160; dataEvents: [{ type: &#39;change&#39;, fn: function(e) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; var randomnumber=Math.floor(Math.random() * 100000); //generate a random number to pass with the load request...otherwisse IE caches the request...<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; costCenterSelect = document.getElementById(&#39;CostCenter&#39;); //probably&#160;should use ajax...anyway, this gets the select element<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; costCenterSelect.options.length = 0; //reset the length of the select options.<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; //ok let&#39;s hit the server with a post request to grab new values for the select<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $.post(&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#39;/GridDataGetCostCategories?job=&#39; + e.target.value + "&#38;random=" + randomnumber,{},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; function( data, textStatus){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; //parse the returned xml...which is just a html select....<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(data).find(&#39;option&#39;).each(function(){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var id_value = $(this).attr(&#39;value&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var catagory = $(this).text();<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; costCenterSelect = document.getElementById(&#39;CostCenter&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; costCenterSelect.options[costCenterSelect.options.length] = new Option( catagory, id_value, false, false ); ; <br />&#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; }, "xml" );<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; } }]<br />&#160;&#160;&#160; }<br />},<br />etc...</p>
<p>hope this helps...</p>
]]></description>
        	        	<pubDate>Tue, 06 Oct 2009 16:22:34 +0300</pubDate>
        </item>
        <item>
        	<title>tony on editable column is not posted as arg to the server</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/editable-column-is-not-posted-as-arg-to-the-server#p10397</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/editable-column-is-not-posted-as-arg-to-the-server#p10397</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>All depends on what are the values from server!!!!</p>
<p>if you use ("#select2").load(.....) - you should return NOT &#60;select&#62;&#60;option&#62;.....&#60;/option&#60;/select&#62;</p>
<p>BUT</p>
<p>&#60;option&#62;......&#60;/option&#62;</p>
<p>You know what I mean</p>
<p>Load replace the content of the element and not the element.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 05 Oct 2009 02:57:03 +0300</pubDate>
        </item>
        <item>
        	<title>JQGRID_FAN on editable column is not posted as arg to the server</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/editable-column-is-not-posted-as-arg-to-the-server#p10388</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/editable-column-is-not-posted-as-arg-to-the-server#p10388</guid>
        	        	<description><![CDATA[<p>hi tony, thanks for answering.</p>
</p>
<p>Getting the initial onchange event to fire is not the problem that I am having.&#160; Your comment of:</p>
</p>
<p>// update the other select</p>
</p>
<p>is the key.&#160; The short statement of "update the other select" is where I&#39;ve been having all my problems.&#160; How do I get the other select to reload.&#160;</p>
</p>
<p>In my first post I said I was doing this:</p>
<p>$("#Task").parent().load(&#39;/WorkItemNew/GridDataGetTasks?costCenter=&#39; + e.target.value);&#160;</p>
</p>
<p>So if we go back to using select1 and select2 as our select controls:</p>
<p>dataEvents: [</p>
<p>{ type: &#39;change&#39;, fn: function(e) {<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; $("#select2").parent().load(&#39;/pathToServer/getNewValues?select1=&#39; + e.target.value);<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; }</p>
<p>&#160;}</p>
<p>]</p>
</p>
<p>So I am passing the value of select1 to the server and hoping that this will reload the select2 with the select2 values returned from the server.&#160; But like I said, all the tags in the DOM get messed up so the pop up add/edit dialog and the jqGrid stop communicating.</p>
<p>The only way I could seem to get it to work (and still there are some issues) is to switch it to this:</p>
<p>$(&#8221;#tr_select1&#8221;).load(&#39;/pathToServer/getNewValues?select1=&#39; + e.target.value); //this reloads the entire table row...not just the select</p>
<p>and returned this back from the server so that element would get built correctly with all the correct class and tag names:</p>
<p>&#60;TD class=&#39;CaptionTD ui-widget-content&#39;&#62;Select1&#60;/TD&#62;<br />&#60;TD style=&#39;WHITE-SPACE: pre&#39; class=&#39;DataTD ui-widget-content&#39;&#62;&#38;nbsp&#60;SELECT id=Select1 class=FormElement size=1 name=select1 &#62;<br />&#60;option selected=&#39;selected&#39; value=&#39;none&#39; &#62;&#60;/option&#62;<br />&#60;option value=&#39;4&#39;&#62;value1&#60;/option&#62;<br />&#60;option value=&#39;5&#39;&#62;value2&#60;/option&#62;<br />&#60;option value=&#39;6&#39;&#62;value3&#60;/option&#62;<br />&#60;option value=&#39;7&#39;&#62;value4&#60;/option&#62;<br />&#60;option value=&#39;8&#39;&#62;value5&#60;/option&#62;<br />&#60;option value=&#39;9&#39;&#62;value6&#60;/option&#62;&#60;/select&#62;&#60;/td&#62;</p>
</p>
<p>Like I said it seems silly to have to rebuild the whole table row in the edit/add dialog.</p>
</p>
<p>Maybe it&#39;s simply not possible to do this??&#160;</p>
<p>When select1 changes I just want to fetch new values for select2 that are dependent on the value that chosen by the user for select1.</p>
</p>
<p>So in suedo code something like:</p>
</p>
<p>select1:&#160; dataEvents: [</p>
<p>{ type: &#39;change&#39;, fn: function(e) {<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; $("#select2").getNewValuesForSelect(&#39;/pathToServer/getNewValues?select1=&#39; + e.target.value);<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; }</p>
<p>&#160;}</p>
<p>]</p>
<p>select2:&#160; dataEvents: [</p>
<p>{ type: &#39;change&#39;, fn: function(e) {<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; $("#select3").getNewValuesForSelect(&#39;/pathToServer/getNew?select2=&#39; + e.target.value);<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; }</p>
<p>&#160;}</p>
<p>]</p></p>
]]></description>
        	        	<pubDate>Sun, 04 Oct 2009 16:24:47 +0300</pubDate>
        </item>
        <item>
        	<title>tony on editable column is not posted as arg to the server</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/editable-column-is-not-posted-as-arg-to-the-server#p10331</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/editable-column-is-not-posted-as-arg-to-the-server#p10331</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Sorry the last expression is not plavced in the appropriate place in the docs. Also corrected.</p>
<p>Thanks.</p>
<p>Whe you bind dataEvents they exists until the element is not destroyed or you unbind it.</p>
<p>So I think you code should be something similar for the select</p>
<p>dataEvents : [</p>
<p>{type:&#39;change&#39;, data:{your data here if you want it},fn:function(e) {</p>
<p>// here your code to get the selected value from the select and pass a ajax to server so that you</p>
<p>// update the other select</p>
<p>}</p>
<p>]</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 02 Oct 2009 09:22:21 +0300</pubDate>
        </item>
        <item>
        	<title>JQGRID_Fan on editable column is not posted as arg to the server</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/editable-column-is-not-posted-as-arg-to-the-server#p10284</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/editable-column-is-not-posted-as-arg-to-the-server#p10284</guid>
        	        	<description><![CDATA[<p>I had tried to get the data evnts working correctly before Tony, but the last line of the documention suggested to me that once the element has been loaded, it won&#39;t bother making a subsquent request to the server : "The event(s) are called only once when the element is created".&#160; i.e.&#160; if it won&#39;t reload the select drop down once it&#39;s loaded the first time.&#160; So while I can probably delay loading data, once the data is loaded then i can&#39;t reload the select control.</p>
<p>So say I only have 2 select controls, called select1 and select2.&#160; When I change the value of select1&#160;I want the values of select2 to change dynamically by requesting the data from the server.&#160; I don&#39;t want the values hard coded in the jqGrid colmodel config.&#160; So everytime select1 changes I want it to request an updated select2 control from the SERVER.</p>
<p>This was all the documentation that I had found on dataevents on the wiki.&#160; like you pointed out, I&#39;m sure it&#39;s dead easy, easy as pie even, and no doubt this is a stupid question, but from the docs that are provided I was unable to move forward.&#160;&#160;The only solution I could come up with was to reload the element&#160;that select2 is a child of each time the first select control changed.&#160; Here is all the documentation that I was able to find:</p>
<p><a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:common_rules&#038;s%5B%5D=dataevents" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....dataevents</a></p>
</p>
<p>{ <span class="search_hit"><span style="background-color: #ffff99;">dataEvents</span></span>: [ <br />{ type: &#39;click&#39;, data: { i: 7 }, fn: function(e) { console.log(e.data.i); } }, <br />{ type: &#39;keypress&#39;, fn: function(e) { console.log(&#39;keypress&#39;); } } <br />] <br />} <br />The event(s) are called only once when the element is created</p>
]]></description>
        	        	<pubDate>Wed, 30 Sep 2009 11:50:31 +0300</pubDate>
        </item>
        <item>
        	<title>tony on editable column is not posted as arg to the server</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/editable-column-is-not-posted-as-arg-to-the-server#p10232</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/editable-column-is-not-posted-as-arg-to-the-server#p10232</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>You can use dataEvents for this purpose (see docs). It is very easy.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 29 Sep 2009 10:50:07 +0300</pubDate>
        </item>
        <item>
        	<title>JQGrid_FAN on editable column is not posted as arg to the server</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/editable-column-is-not-posted-as-arg-to-the-server#p10192</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/editable-column-is-not-posted-as-arg-to-the-server#p10192</guid>
        	        	<description><![CDATA[<p>Hey Tony, I figured out what was wrong.</p>
</p>
<p>The ajax call of $("#Task").parent().load&#160; is actually recreating the element from scratch but only with the information that was being passed back from the server.&#160; So all the tag names etc. were wrong in the generated html.</p>
</p>
<p>I changed the code to this:</p>
<p>var randomnumber=Math.floor(Math.random()*100000); //generate a random number to pass with the load request...otherwisse IE caches the request...<br />$("#tr_CostCenter").load(&#39;/WorkItemNew/GridDataGetCostCatagories?job=&#39; + e.target.value + "&#38;random=" + randomnumber );</p>
</p>
<p>and returned this back from the server so that element would get built correctly with all the correct class and tag names:</p>
<p>&#60;TD class=&#39;CaptionTD ui-widget-content&#39;&#62;CostCenter&#60;/TD&#62;<br />&#60;TD style=&#39;WHITE-SPACE: pre&#39; class=&#39;DataTD ui-widget-content&#39;&#62;&#38;nbsp&#60;SELECT id=CostCenter class=FormElement size=1 name=CostCenter&#160; &#62;<br />&#60;option selected=&#39;selected&#39; value=&#39;none&#39; &#62;&#60;/option&#62;<br />&#60;option value=&#39;4&#39;&#62;value1&#60;/option&#62;<br />&#60;option value=&#39;5&#39;&#62;value2&#60;/option&#62;<br />&#60;option value=&#39;6&#39;&#62;value3&#60;/option&#62;<br />&#60;option value=&#39;7&#39;&#62;value4&#60;/option&#62;<br />&#60;option value=&#39;8&#39;&#62;value5&#60;/option&#62;<br />&#60;option value=&#39;9&#39;&#62;value6&#60;/option&#62;&#60;/select&#62;&#60;/td&#62;</p>
</p>
<p>It would be nice not to have to jump through all these hoops to get dynamic data being loaded from the server.</p>
</p>
<p>If you have 3 select boxes where the choice of&#160; the first one effects the values in the second which effect the values in the 3rd I wish you had a tag in the column model that would allow dynamically reloading the values of that cell from the server.</p>
]]></description>
        	        	<pubDate>Sun, 27 Sep 2009 12:27:25 +0300</pubDate>
        </item>
        <item>
        	<title>JQGRID_FAN on editable column is not posted as arg to the server</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/editable-column-is-not-posted-as-arg-to-the-server#p10167</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/editable-column-is-not-posted-as-arg-to-the-server#p10167</guid>
        	        	<description><![CDATA[<p>also, not sure if it was clear from the above post but I did remove space in &#39;Cost Center&#39;.&#160; It made it worse....I realize the docs say don&#39;t use spaces, but it for some reason the ColName was different then the &#39;name&#39; in the column model it broke the binding.</p>
</p>
<p>Anyway, kinda jammed here.&#160; I appreciate any help you can provide.&#160; Even if it turns out I&#39;m missing something obvious (which I&#39;m sure I am).</p></p>
]]></description>
        	        	<pubDate>Fri, 25 Sep 2009 17:54:06 +0300</pubDate>
        </item>
        <item>
        	<title>JQGRID_FAN on editable column is not posted as arg to the server</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/editable-column-is-not-posted-as-arg-to-the-server#p10165</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/editable-column-is-not-posted-as-arg-to-the-server#p10165</guid>
        	        	<description><![CDATA[<p>hey tony, I just spent the day re-reading the docs and I still think it&#39;s a bug.</p>
</p>
<p>what&#39;s weird is if I change the costcenter column from &#39;Cost Center&#39; to &#39;CostCenter&#39; the event that is supposed to fire when the &#39;Project&#39; column is changed doesn&#39;t even fire.&#160; And after closing the &#39;Add&#39; dialog the Task column isn&#39;t populated with the value from the drop down select in the Add dialog.&#160; It stays blank!</p>
</p>
<p>I simplified the xml model and little bit (got rid of the id column, and I&#39;m using the RecordNum as the id so re reading the docs all day helped there.&#160; Please take another look.</p>
</p>
<p>I&#39;m convinced the issue is when the the events fire to change dynamically the select columns.&#160; I think the id that is being generated cells is wrong.</p>
</p>
<p>here is the xml from the server (xml response from a .NET c# mvc app):</p>
</p>
<p>&#60;LaborRecords&#62; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;Request&#62;true&#60;/Request&#62;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;Items&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;page&#62;1&#60;/page&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;total&#62;17&#60;/total&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;records&#62;20&#60;/records&#62;&#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;&#160; &#60;Item&#62;<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; &#60;RecordNum&#62;1234&#60;/RecordNum&#62;<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; &#60;Project&#62;&#60;/Project&#62;<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; &#60;CostCenter&#62;arg&#60;/CostCenter&#62;<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; &#60;Task&#62;dostuff&#60;/Task&#62;<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; &#60;Units&#62;0.0&#60;/Units&#62;<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; &#60;Rate&#62;&#60;/Rate&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/Item&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/Items&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/LaborRecords&#62;</p>
</p>
<p>and the grid definition:</p>
<p>&#60;script type="text/javascript"&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(document).ready(<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var lastsel; //for storing the last edited row<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(&#39;#list&#39;).jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: &#39;/WorkItemNew/GridData&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: "xml",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames: [&#39;Project&#39;, &#39;Cost Center&#39;, &#39;Task&#39;, &#39;Unit(s)&#39;, &#39;Rate&#39; ],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#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;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Project&#39;, index: &#39;Project&#39;, width: 200, editable: true, edittype: "select", align: &#39;right&#39;, editoptions: { size: 1, dataUrl: &#39;/WorkItemNew/GridDataGetProjects&#39;,<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; dataEvents: [{ type: &#39;change&#39;, fn: function(e) {<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; $("#CostCenter").parent().load(&#39;/WorkItemNew/GridDataGetCostCatagories?job=&#39; + e.target.value);<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; } }]<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; }<br />&#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; { name: &#39;Cost Center&#39;, index: &#39;CostCenter&#39;, width: 200, xmlmap:&#39;CostCenter&#39;, editable: true, edittype: "select", align: &#39;right&#39;, editoptions: { size: 1, dataUrl: &#39;/WorkItemNew/GridDataGetCostCatagories&#39;,<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; dataEvents: [{ type: &#39;change&#39;, fn: function(e) {<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; var tempVal = e.target.value.replace(/^\\s\\s*/, &#39;&#39;).replace(/\\s\\s*$/, &#39;&#39;);<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; //we could prevent a server call here by checking to see if tempVal == ""<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; $("#Task").parent().load(&#39;/WorkItemNew/GridDataGetTasks?costCenter=&#39; + e.target.value);<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; } }]<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; }<br />&#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; { name: &#39;Task&#39;, index: &#39;Task&#39;, width: 200, xmlmap: &#39;Task&#39;, editable: true, edittype: "select", align: &#39;right&#39;, editoptions: { size: 1, dataUrl: &#39;/WorkItemNew/GridDataGetTasks&#39;} },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Units&#39;, index: &#39;units&#39;, width: 150, editable: true, xmlmap: &#39;Units&#39;, align: &#39;right&#39;, sorttype: "float" },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Rate&#39;, index: &#39;rates&#39;, width: 150, editable: true, xmlmap: &#39;Rate&#39;, edittype: "select", align: &#39;right&#39;, editoptions: { size: 1, dataUrl: &#39;/WorkItemNew/GridDataGetRates&#39;} },<br />&#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; rownumbers: true,<br />&#160;&#160;&#160;&#160;&#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;&#160;&#160;&#160;&#160; sortname: &#39;Id&#39;,<br />&#160;&#160;&#160;&#160;&#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;&#160;&#160;&#160;&#160; sortorder: "desc",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; xmlReader: {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; root: &#39;Items&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; row: &#39;Item&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; repeatitems: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; id: &#39;RecordNum&#39;<br />&#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; height: 300,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; editurl: &#39;/WorkItemNew/GridDataEdit&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption: &#39;New Work Item View&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }).navGrid("#list", { edit: false, add: true, del: false });</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#AddLabor").click(function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; workDate = document.getElementById(&#39;WorkDate&#39;); //can&#39;t figure out how to use ajax to get this... $("WorkDate).value should work...<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (workDate.value == "") {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert("You need to specify a work date");<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return;<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;&#160;&#160;&#160; jQuery("#list").editGridRow("new", { processData: "Processing...", bSubmit: "Save", bCancel: "Exit", height: 280, url: "/WorkItemNew/GridDataEdit?WorkDate=" + workDate.value, reloadAfterSubmit: false }); ;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160; &#60;/script&#62;</p>
]]></description>
        	        	<pubDate>Fri, 25 Sep 2009 17:48:47 +0300</pubDate>
        </item>
        <item>
        	<title>tony on editable column is not posted as arg to the server</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/editable-column-is-not-posted-as-arg-to-the-server#p10110</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/editable-column-is-not-posted-as-arg-to-the-server#p10110</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Please do not use spaces in the names, since the on the base of the name we duild the name and the id. See docs.</p>
<p>Also instead of name: &#39;Record Number&#39; use name: &#39;Record_Number&#39; or something else, that will be valid id.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 25 Sep 2009 02:58:51 +0300</pubDate>
        </item>
        <item>
        	<title>JQGRID_Fan on editable column is not posted as arg to the server</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/editable-column-is-not-posted-as-arg-to-the-server#p10058</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/editable-column-is-not-posted-as-arg-to-the-server#p10058</guid>
        	        	<description><![CDATA[<p>Hey Tony, I had posted an issue about hidden columns not being posted to the server but now it seems that an editable column is also not being posted to the server.</p>
</p>
<p>In the following defintion of the grid the &#39;Task&#39; is never being sent.&#160; Is this because it&#39;s dynamically changing via the parent.load calls?&#160; All columns except Record Number and Task get sent correctly to the server when adding a new record.</p>
</p>
<p>&#160;&#160;&#160; &#60;script type="text/javascript"&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(document).ready(<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var lastsel; //for storing the last edited row<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#list").jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: &#39;/WorkItemNew/GridData&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: "xml",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames: [&#39;Id&#39;, &#39;Record Number&#39;, &#39;Project&#39;, &#39;Cost Center&#39;, &#39;Task&#39;, &#39;Units&#39;, &#39;Rate&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#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;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Id&#39;, index: &#39;Id&#39;, width: 50, hidden: true, editable: false, xmlmap: "Id" },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Record Number&#39;, index: &#39;RecordNum&#39;, width: 50, editable: false, xmlmap: "RecordNum" },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Project&#39;, index: &#39;Project&#39;, width: 200, editable: true, edittype: "select", align: &#39;right&#39;, editoptions: { size: 1, dataUrl: &#39;/WorkItemNew/GridDataGetProjects&#39;,<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; dataEvents: [{ type: &#39;change&#39;, fn: function(e) {<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; $("#CostCenter").parent().load(&#39;/WorkItemNew/GridDataGetCostCatagories?job=&#39; + e.target.value);<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; } }]<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; }<br />&#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; { name: &#39;Cost Center&#39;, index: &#39;CostCenter&#39;, width: 200, editable: true, edittype: "select", align: &#39;right&#39;, editoptions: { size: 1, dataUrl: &#39;/WorkItemNew/GridDataGetCostCatagories&#39;,<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; dataEvents: [{ type: &#39;change&#39;, fn: function(e) {<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; var tempVal = e.target.value.replace(/^\\s\\s*/, &#39;&#39;).replace(/\\s\\s*$/, &#39;&#39;);<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; //we could prevent a server call here by checking to see if tempVal == ""<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; $("#Task").parent().load(&#39;/WorkItemNew/GridDataGetTasks?costCenter=&#39; + e.target.value);<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; } }]<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; }<br />&#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; { name: &#39;Task&#39;, index: &#39;Task&#39;, width: 400, editable: true, edittype: "select", align: &#39;right&#39;, editoptions: { size: 1, dataUrl: &#39;/WorkItemNew/GridDataGetTasks&#39;} },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Units&#39;, index: &#39;Units&#39;, width: 100, editable: true, xmlmap: "Units", align: &#39;right&#39;, sorttype: "float" },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Rate&#39;, index: &#39;Rates&#39;, width: 100, editable: true, edittype: "select", align: &#39;right&#39;, editoptions: { size: 1, dataUrl: &#39;/WorkItemNew/GridDataGetRates&#39;} },<br />&#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; rowNum: 10,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowList: [10, 20],<br />&#160;&#160;&#160;&#160;&#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;&#160;&#160;&#160;&#160; sortname: &#39;Id&#39;,<br />&#160;&#160;&#160;&#160;&#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;&#160;&#160;&#160;&#160; sortorder: "desc",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; xmlReader: {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; root: "Items",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; row: "Item",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; repeatitems: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; id: "Id"<br />&#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; height: 300,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; editurl: &#39;/WorkItemNew/GridDataEdit&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption: "test",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ondblClickRow: function(id) {<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;//do stuff&#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; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }).navGrid("#list", { edit: false, add: true, del: false });</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });</p>
]]></description>
        	        	<pubDate>Wed, 23 Sep 2009 17:05:00 +0300</pubDate>
        </item>
</channel>
</rss>