<?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: Testing of all dependencies in jqGrid code parts</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/testing-of-all-dependencies-in-jqgrid-code-parts</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/feature-request/testing-of-all-dependencies-in-jqgrid-code-parts/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on Testing of all dependencies in jqGrid code parts</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/testing-of-all-dependencies-in-jqgrid-code-parts#p19724</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/testing-of-all-dependencies-in-jqgrid-code-parts#p19724</guid>
        	        	<description><![CDATA[<p>Hi Tony!</p>
<p>After I write relative many answers on stackoverflow and in the forum I could frequently see the same problems:</p>
<ul>
<li>one use some javascript files needed for jqGrid in the wrong order (like js/i18n/grid.locale-en.js and js/jquery.jqGrid.min.js) or forget to include some plugins (like ui.multiselect.js)</li>
<li>one use mix of different versions of jqGrid files</li>
<li>one forget to include some CSS files which required (for ui.multiselect.css, jquery.searchFilter.css&#160;and so on)</li>
</ul>
<p>I suggest to include in the code of jqGrid of any files definition some simple variables which an be used by testing whether a dependend file included and in which version. Moreover all jqGrid components should test whether the dependend file are included before the current file and are used in the correct version.</p>
<p>It could save the time for both side: persons which use jqGrid and persons which make suport for jqGrid (for example you Tony).</p>
<p>For example, if grid.locale-en.js is not included before jquery.jqGrid.min.js then could be displayed&#160;an error like&#160;</p>
<p><em>ERROR: Please include grid.locale-en.js or other which correspond your language code BEFORE jqGrid main JS file.</em></p>
<p>One can also test whether jQuery object undefined in very simple way:</p>
<p>if (!jQuery) { alert ("ERROR: Please include jQuery BEFORE jqDrid!")}</p>
<p>or</p>
<p>if (ts.p.grouping &#38;&#38; !$.isFunction($.jgrid.getAccessor($.fn.jqGrid,&#39;groupingSetup&#39;))) {<br />&#160;&#160;&#160; var errorText = "ERROR: if you use grouping feature of jqGrid you have to include  Grouping feature during downloading minimized version of jqGrid or  include grid.grouping.js file if you use developer version of jqGrid";<br />&#160;&#160;&#160; alert (errorText);<br />&#160;&#160;&#160; return: // or throw errorText;<br />}</p>
<p>One can make also some test whether some CSS classes are defined (for example see <a href="http://www.weask.us/entry/determine-css-class-exists-javascript" rel="nofollow" target="_blank"><a href="http://www.weask.us/entry/dete" rel="nofollow">http://www.weask.us/entry/dete</a>.....javascript</a>).</p>
<p>Which disadvantages to implement such kind of tests in jqGrid? What do you think about.</p>
<p>Best regards<br /><span style="font-size: 14.1667px;">Oleg</span></p>
]]></description>
        	        	<pubDate>Sat, 11 Sep 2010 23:09:05 +0300</pubDate>
        </item>
</channel>
</rss>