<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
  <channel>
    <title>Alex Gyoshev's blog</title>
    <description>Client-side magic with script and style</description>
    <link>http://blogs.telerik.com/AlexanderGyoshev/Posts.aspx</link>
    <docs>http://backend.userland.com/rss</docs>
    <item>
      <title>Performance tip: Using sprites with navigational RadControls</title>
      <description>&lt;p&gt;As a strong believer in &lt;a href="http://www.alistapart.com/articles/sprites/"&gt;sprites&lt;/a&gt;, I was inspired from a question that came up in a &lt;a href="http://www.telerik.com/community/forums/thread/b311D-bkamdm.aspx"&gt;forum thread&lt;/a&gt; earlier this week, namely: how to use &lt;a href="http://senjei.deviantart.com/art/Wood-Sprite-53336212"&gt;sprites&lt;/a&gt; in a RadTreeView? Well, I think it's rather limiting to write only about the RadTreeView, so this post discusses the technique for all of the navigational RadControls.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.telerik.com/photos/storage/gyoshev/TelerikNavigationalControls-Sprites.zip" style="margin: 5px auto; display: block; width: 344px;"&gt;&lt;img height="259" width="344" border="0" style="border: 0px none ;" alt="screenshot" src="http://blogs.telerik.com/Libraries/MetaBlog/WindowsLiveWriter-PerformancetipimagesasspritesinRadTreeVi_DAF9-screenshot_thumb.sflb" /&gt;&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;You can &lt;a href="/photos/storage/gyoshev/TelerikNavigationalControls-Sprites.zip"&gt;download the sample page&lt;/a&gt; and give it at try. Most of the code is quite straightforward - simply setting the &lt;span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; font-family: consolas,monospace;"&gt;CssClass&lt;/span&gt; property and a few layout adjustments. Please note, however, that this CSS is tightly bound to the skin that is currently used, so changing skins might not work (to be more specific, it won't work for skins that set background images to the text nodes).&lt;/p&gt;
&lt;p&gt;Why go through all the pain? Well, great performance boost for every instance of RadControls that uses it - by both &lt;a href="http://developer.yahoo.com/performance/rules.html#num_http"&gt;minimizing the HTTP request count&lt;/a&gt; and optimizing the HTML output of the control.&lt;/p&gt;
&lt;p&gt;Oh, and... I would like to give some credit to &lt;a href="http://famfamfam.com/"&gt;Mark James&lt;/a&gt;, who created &lt;a href="http://famfamfam.com/lab/icons/silk/"&gt;the wonderful Silk icon set&lt;/a&gt; that was spritified. Slickedy-slick!&lt;/p&gt;
</description>
      <link>http://blogs.telerik.com/AlexanderGyoshev/Posts/08-07-23/Performance_tip_Using_sprites_with_navigational_RadControls.aspx</link>
      <author>Alexander Gyoshev</author>
      <comments>http://blogs.telerik.com/AlexanderGyoshev/Posts/08-07-23/Performance_tip_Using_sprites_with_navigational_RadControls.aspx</comments>
      <guid isPermaLink="false">ac23868f-2d7f-4250-b464-ce24bdcc0fea</guid>
      <pubDate>Wed, 23 Jul 2008 09:50:00 GMT</pubDate>
    </item>
    <item>
      <title>Introducing: the telePhone </title>
      <description>&lt;p&gt;After digging around in Telerik's old Visual Source-Safe server, I found a long-forgotten prototype of a RadMenu skin.&lt;/p&gt;
&lt;p&gt;I felt the urge to disclose it to you, and hope that you will like it. &lt;/p&gt;
&lt;div style="border: 1px solid rgb(187, 187, 187); margin: 20px auto; width: 296px;"&gt;&lt;a href="http://blogs.telerik.com/demos/IPodRadMenu/" title="view the live example" style="border: 1px solid rgb(187, 187, 187); margin: 4px auto 0pt; display: block; width: 288px;"&gt;&lt;img style="border: 0pt none ;" alt="telePhone prototype" src="/Libraries/MetaBlog/telePhone.sflb" /&gt;&lt;/a&gt;
&lt;div style="margin: 3px 0pt; font-style: italic; text-align: center;"&gt;the telePhone prototype&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;On second thought, this initial draft looks good enough, so we might switch to hardware production. Don't be evil, we were first! Maybe we could even go 3G...&lt;/p&gt;
&lt;p&gt;Ok now, getting serious - you could use this sort of menu for navigating when there is a large hierarchy in the site navigation (or, to be more specific, a hierarchy that has a wide tree). Currently, no scrolling is implemented - don't flood me with comments after you touched your LCD and the menu items didn't move.&lt;/p&gt;
&lt;p&gt;For the techies: go ahead, &lt;a href="http://blogs.telerik.com/photos/storage/gyoshev/IPodRadMenu.zip"&gt;download the project&lt;/a&gt; and play a bit with it. Most of the client-side logic of the actual RadMenu has been replaced, as this is a completely different concept of using it - read this as "external skin and event overrides".&lt;/p&gt;
&lt;p style="font-size: 90%; font-style: italic; text-align: center;"&gt;iPod is a registered trademark of &lt;a href="http://www.apple.com"&gt;Apple, Inc.&lt;/a&gt;&lt;br /&gt;
(We didn't register the telerik phone as one because there actually &lt;em&gt;is&lt;/em&gt; a product called a "telePhone" - go figure.)&lt;/p&gt;
</description>
      <link>http://blogs.telerik.com/AlexanderGyoshev/Posts/08-06-13/Introducing_the_telePhone.aspx</link>
      <author>Alexander Gyoshev</author>
      <comments>http://blogs.telerik.com/AlexanderGyoshev/Posts/08-06-13/Introducing_the_telePhone.aspx</comments>
      <guid isPermaLink="false">1643f722-1b89-4880-ac8f-01c3642454fa</guid>
      <pubDate>Fri, 13 Jun 2008 01:00:00 GMT</pubDate>
    </item>
  </channel>
</rss>