<?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: decreasing my jqGrid calls</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/decreasing-my-jqgrid-calls</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/decreasing-my-jqgrid-calls/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Energetic Pixels on decreasing my jqGrid calls</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/decreasing-my-jqgrid-calls#p19916</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/decreasing-my-jqgrid-calls#p19916</guid>
        	        	<description><![CDATA[<p>Ok. lets try ,this again.&#160; My other post was too confusing.</p>
<p>I have a website where the site&#39;s menu is actually initiating jqGrid with varying static xml files and column models/onSelectRow actions.&#160; I am trying to get this down to a minimum.&#160; The person that updates this site may or may not be a web programmer.&#160; Scary I know.</p>
<p>SOOO....</p>
<p>My original call to jqGrid works like a charm.&#160; But to switch xml file source, I have to edit the js file that contains the call.&#160; I have moved everything that differs from standard jqGrid and that will not change throughout my app over to jQuery.extend operation, as in this trirand&#39;s documentation.&#160; But what remains is a extremely lengthy column model, onSelectRow and a short xmlReader.&#160; I am going to have 41 web site menu buttons that will &#39;feed&#39; jqGrid with configuration data.&#160; Each button will feed jqGrid with slightly different config data from other buttons.&#160; Is there a way to do this where it makes since.&#160; My alternative is to repeat/restate the column model and onSelect row information and attach that to each button.&#160; After 41 buttons, this will get quite lengthy js file.&#160; My column model right now stands at 118 lines of code (just for one working button).&#160; My onSelectRow is about 50 lines of code long.</p>
</p>
<p>there has to be a better way.&#160; I thought about putting the column models and onSelectRow attributes into variables and feeding jqGrid those variables at the appropriate time through click functions from the site&#39;s buttons that activate jqGrid.&#160; But I got confused and had to take a step back.</p>
</p>
<p>I would greatly any insight.&#160; I know just enough to be dangerous of jQuery.&#160; But willing to learn lots more. Here is my <a title="testing site" href="http://www.serco-hrc.com/testMe/index.html" target="_blank">testing site</a>.</p>
</p>
<p>Tony<img class="spSmiley" style="margin:0" title="Confused" src="/blog/wp-content/forum-smileys/sf-confused.gif" alt="Confused" /></p>
]]></description>
        	        	<pubDate>Wed, 22 Sep 2010 02:26:10 +0300</pubDate>
        </item>
</channel>
</rss>