<?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: Add parameter to make full jqGrid draggable</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/add-parameter-to-make-full-jqgrid-draggable</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/add-parameter-to-make-full-jqgrid-draggable/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on Add parameter to make full jqGrid draggable</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/add-parameter-to-make-full-jqgrid-draggable#p17413</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/add-parameter-to-make-full-jqgrid-draggable#p17413</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
<p>I save&#160;always&#160;the result of&#160;jQuery.jqGrid()&#160;in a variable, so the original code looks like</p>
<p>&#160;&#160; &#160;var grid = jQuery.jqGrid({...});<br />&#160;&#160; &#160;var gboxNode = grid.parentNode.parentNode.parentNode.parentNode;<br />&#160;&#160; &#160;jQuery(gboxNode).draggable ({handle:"div.ui-jqgrid-titlebar"}); &#160;</p>
<p>and have no search operation like jQuery("#list"). If we use jQuery("#list"), the code jQuery("#gbox_list")[0] will be of cause quickly.</p>
<p><span style="font-size: 13.8889px; ">I know the way with "#gbox_list". I am not sure, but it seems to me that direct&#160;travailing&#160;4 times for&#160;<strong>parentNode</strong> is more quickly as a global search in a page for an <strong>id</strong>. If the grid is already filled it could exist a lot of elements on the page having <strong>id</strong> attribute. I understand, that&#160;searching&#160;for ids is&#160;relatively&#160;quick way, but direct&#160;travailing&#160;seems to me more quickly. If we have more then one grids of the page, the work will be more complex.</span></p>
<p><span style="font-size: 13.8889px;">After I read one time in the list of changes in some of jqGrid version about a fix, which makes jqGrid working if somebody use two times the same id on the same page, I found such problem very funny, but also very interesting. Since the time I&#160;prefer&#160;cache some jQuery objects in a local variables. Moreover I am looking for a programming style in JavaScript to improve code performance. I seen, that in the most places of jqGrid code you use searching for cells and other elements by ids. It seems to me that usage of&#160;travailing&#160;to <strong>parentNode</strong> from some known elements and more using of contexts in&#160;retrieving&#160;of elements could improve the performance of code. What do you think about this?</span></p>
<p>Best Regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Mon, 24 May 2010 17:55:05 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Add parameter to make full jqGrid draggable</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/add-parameter-to-make-full-jqgrid-draggable#p17407</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/add-parameter-to-make-full-jqgrid-draggable#p17407</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thanks. Good recomendation. But it is quite easy to do it so</p>
<p>&#160;var gboxNode = jQuery("#gbox_list")[0];</p>
<p>where gbox_list is the div where all the jqGrid things are - i.e combination from gbox_ + the id of the grid</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 24 May 2010 17:11:39 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on Add parameter to make full jqGrid draggable</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/add-parameter-to-make-full-jqgrid-draggable#p17404</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/add-parameter-to-make-full-jqgrid-draggable#p17404</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
<p>a very simple code</p>
<p>&#160;&#160; &#160;var gboxNode = jQuery("#list")[0].parentNode.parentNode.parentNode.parentNode;<br />&#160;&#160; &#160;jQuery(gboxNode).draggable ({handle:"div.ui-jqgrid-titlebar"});&#160;</p>
<p>makes jqGrid with id="list" draggable, so one can drag the grid on the header and drop it on another place on the web page. This small thing which came from stackoverflow.com can be interesting for other. What do you think about to add an additional parameter of jqGrid which do this?</p>
<p>Regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Mon, 24 May 2010 16:43:03 +0300</pubDate>
        </item>
</channel>
</rss>