<?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: Hacking the jQuery-UI Theme Switcher</title>
	<link>http://www.trirand.com/blog/?page_id=393/discussion/hacking-the-jquery-ui-theme-switcher</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/discussion/hacking-the-jquery-ui-theme-switcher/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Hacking the jQuery-UI Theme Switcher</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/hacking-the-jquery-ui-theme-switcher#p6474</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/hacking-the-jquery-ui-theme-switcher#p6474</guid>
        	        	<description><![CDATA[<p>Hello Steven,</p>
<p>Thanks. Good catch. Will try to do this for the beta.</p>
<p>I aggree with you about font sizes in the themes. The recommended approach of jQuery UI team is to use</p>
<p>font-size: 62.5%;</p>
<p>This approach IMHO is not good and it works if you load the page, but if you try to add dynamically a UI Widget it does not work. Example. If you have tab and try to add dynamically (via url) a accordion whitin tab you will have a destroyed font size for the accordion. Try it.</p>
<p>This is the reason that I have set a fixed font size for all grids.</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 05 May 2009 07:47:57 +0300</pubDate>
        </item>
        <item>
        	<title>mainster on Hacking the jQuery-UI Theme Switcher</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/hacking-the-jquery-ui-theme-switcher#p6430</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/hacking-the-jquery-ui-theme-switcher#p6430</guid>
        	        	<description><![CDATA[<p>I used the following CSS to tweak jqGrid for Themes:</p>
</p>
<p><span class="objectBox objectBox-errorMessage hasTwisty hasBreakSwitch opened"></span></p>
<div class="errorSourceBox errorSource-exec"></div>
<div class="errorSourceBox errorSource-exec">html, body {<br />&#160;&#160;&#160; margin: 0;&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; /* Remove body margin/padding */<br />&#160;&#160;&#160; padding: 0;<br />&#160;&#160;&#160; overflow: hidden;&#160;&#160;&#160; /* Remove scroll bars on browser window */&#160;&#160;&#160; <br />&#160;&#160;&#160; font-size: 75%;<br />}</p>
<p>.ui-jqgrid-title {<br />&#160;&#160;&#160; font-size: 12px;<br />}</p>
</div>
<div class="errorSourceBox errorSource-exec"></div>
<div class="errorSourceBox errorSource-exec">.ui-pg-button {<br />&#160;&#160;&#160; border: 1px solid transparent;<br />}</p>
<p>table th.ui-th-column {<br />&#160;&#160;&#160; font-size:0.7em;<br />}</p>
<p>table.ui-pg-table td {<br />&#160;&#160;&#160; border: 1px solid transparent !important;<br />&#160;&#160;&#160; font-size:0.7em;<br />}</p>
<p>table.ui-pg-table td span {<br />&#160;&#160;&#160; border: 1px solid transparent !important;<br />}</p>
<p>table.ui-pg-table input {<br />&#160;&#160;&#160; font-size:0.7em;&#160;&#160;&#160; <br />&#160;&#160;&#160; height:18px !important;<br />}</p>
<p>div#srchmodlist td {<br />&#160;&#160;&#160; font-size:0.7em !important;&#160;&#160;&#160; <br />}</p>
<p>div#srchmodlist input#sval,<br />div#srchmodlist select#sopt {<br />&#160;&#160;&#160; width: 12em;<br />}</p>
<p>div#pager.ui-jqgrid-pager {<br />&#160;&#160;&#160; height: 30px !important;<br />}</p>
</div>
<div class="errorSourceBox errorSource-exec"></div>
<div class="errorSourceBox errorSource-exec">And the following <span class="objectBox objectBox-errorMessage hasTwisty hasBreakSwitch opened">css addons using jQuery </span>selectors </div>
<div class="errorSourceBox errorSource-exec"></div>
<div class="errorSourceBox errorSource-exec">jQuery(document).ready(function(){<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $("#list").addClass("ui-widget");<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $("td#pager_center table.ui-pg-table td:nth-child(4)").addClass("ui-state-default");<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $("td#pager_center + td").addClass("ui-state-default");</div>
<div class="errorSourceBox errorSource-exec">});</div>
<div class="errorSourceBox errorSource-exec"></div>
<div class="errorSourceBox errorSource-exec"></div>
<div class="errorSourceBox errorSource-exec">Also in formedit.js the searchGrid must be set to width 600, the default 410</div>
<div class="errorSourceBox errorSource-exec">is just too small. I&#39;m sure there are other places that also needs tweaking ;P</div></p>
]]></description>
        	        	<pubDate>Sat, 02 May 2009 15:09:50 +0300</pubDate>
        </item>
        <item>
        	<title>StevenBlack on Hacking the jQuery-UI Theme Switcher</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/hacking-the-jquery-ui-theme-switcher#p6426</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/hacking-the-jquery-ui-theme-switcher#p6426</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
<p>As usual, GREAT work on jQuery 3.5 Alpha 3.</p>
<p>I have also been using the jQuery-UI theme switcher tool and here are some easy things I think you should consider.</p>
<p>First, I think you should consider hosting the .js file yourself.&#160; Everything below requires its modification.&#160; Another reason to host yourself: as I write this the ThemeSwitcher link used by the demo is not responding, so the jQgrid 3.5 Alpha 3 demos do not work right now.</p>
<p><strong>Background:</strong> All the themes<strong></strong>&#160; are defined on a single (long) line in the .js file.&#160; That line is easy to find.</p>
<p><strong>To hack the file</strong> it is easier to add a few line-feeds prior to each &#60;li&#62; element in the file.&#160; This breaks the javascript but makes the line, now one block per theme, easier to edit.</p>
<p><strong>Theme font sizes:</strong> Various themes use different fonts, and require different font-size CSS to look consistent.&#160; <strong>However</strong> I disagree with the selections of the jQuery-UI team.&#160; Certain themes, like Blitzer for example, are way too big.</p>
<p>I normalized all my theme font-size attributes to 1.1 em and I am much happier as a result.&#160; Like this:</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160; <strong>&#8230;&#38;amp;fsDefault=1.1em&#38;amp&#8230;</strong> (everywhere)</p>
<p>Looks good and works great!</p>
<p><strong>Ugly themes: </strong>Lets be honest: many of the default themes, especially the darker ones, are never going to be used by anyone.&#160; Also, the ThemeSwitcher javascript file is huge.&#160; While you have the themes visually segmented with line breaks, feel free to delete whole blocks (bounded by &#60;li&#62;) that invoke ugly themes.</p>
<p><strong>Zebra-striping for grids:</strong> while you are here, I am sure you can figure out how to add a zebra-striping style to this theme switcher.&#160; Idea: take the background color range between ui-widget-content and ui-widget-header and interpolate a point just a few percentages off the value of ui-widget-content.</p>
<p><strong>When done:</strong> remove the line breaks you added earlier and walla!</p>
</p>
<p>**&#8211;**&#160; Steve</p>
]]></description>
        	        	<pubDate>Sat, 02 May 2009 09:55:50 +0300</pubDate>
        </item>
</channel>
</rss>