<?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: Modifying the Title Bar</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/modifying-the-title-bar</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/modifying-the-title-bar/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>nickelj on Modifying the Title Bar</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/modifying-the-title-bar#p20481</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/modifying-the-title-bar#p20481</guid>
        	        	<description><![CDATA[<p>Thanks so much!&#160; Exactly what I needed too!</p>
<p>I made a&#160;extra icon beside some fields in a&#160;GridEdit that creates a&#160;"browse" popup that uses another jqGrid to display a list of possible selections (too many to use a standard select in the GridEdit &#8211; and besides, the select isn&#39;t searchable). Then the user can click on one and it puts that data back into the GridEdit form.</p>
</p>
<p>I just needed a close button so the user could close the browse window without making a selection.</p>
<p>Here is my adjusted code:</p>
<p>&#160;&#160; temp = $("&#60;a href=&#39;#&#39; role=&#39;link&#39; style=&#39;right: 16px;&#39; onclick=&#39;window.parent.$.modal.close();&#39;/&#62;")<br />&#160;&#160; .addClass(&#39;ui-jqgrid-titlebar-close HeaderButton&#39;)<br />&#160;&#160; .hover(function() {$(this).addClass(&#39;ui-state-hover&#39;);},<br />&#160;&#160; function() {$(this).removeClass(&#39;ui-state-hover&#39;);}<br />&#160;&#160; ).append ("&#60;span class=&#39;ui-icon ui-icon-circle-close&#39;&#62;&#60;/span&#62;");<br />&#160;&#160; $(&#39;.ui-jqgrid-title&#39;).before (temp);</p>
</p>
<p>I used the SimpleModal plugin which is what the $.modal refers to. This popup was a IFRAME with the jqGrid displayed inside it, so it has to go to the parent document in order to close as that is where it was created.</p>
<p>So cool!&#160; Thanks again!</p>
</p>
<p>Jim</p>
]]></description>
        	        	<pubDate>Tue, 26 Oct 2010 05:50:24 +0300</pubDate>
        </item>
        <item>
        	<title>squid on Modifying the Title Bar</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/modifying-the-title-bar#p17377</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/modifying-the-title-bar#p17377</guid>
        	        	<description><![CDATA[<p>Well, I plowed my way through the code and decided that, for now, the best way I could insert a new button into the title bar is as follows:</p>
<pre><p>temp = $("&#60;a href=&#39;#&#39; role=&#39;link&#39; style=&#39;right: 16px;&#39;/&#62;")</p><p>.addClass(&#39;ui-jqgrid-titlebar-close HeaderButton&#39;)</p><p>.hover(</p><p>function() {$(this).addClass(&#39;ui-state-hover&#39;);},</p><p>function() {$(this).removeClass(&#39;ui-state-hover&#39;);}</p><p>).append ("&#60;span class=&#39;ui-icon ui-icon-circle-close&#39;&#62;&#60;/span&#62;");</p><p>$(&#39;.ui-jqgrid-title&#39;).before (temp);</p></pre>
<p>
I haven&#39;t started adding a function to this new button, but it&#39;s going to be a close button because I made the jqGrid movable like a dialog.</p>
]]></description>
        	        	<pubDate>Fri, 21 May 2010 04:02:25 +0300</pubDate>
        </item>
        <item>
        	<title>squid on Modifying the Title Bar</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/modifying-the-title-bar#p17374</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/modifying-the-title-bar#p17374</guid>
        	        	<description><![CDATA[<p>Is there any way to add an icon to the title bar of the grid (right after the minimize icon). &#160;I was looking at the code and found the place where it is created. &#160;Seems very elaborate so I was just wondering if anyone else had already attempted this.</p>
]]></description>
        	        	<pubDate>Fri, 21 May 2010 00:12:32 +0300</pubDate>
        </item>
</channel>
</rss>