Telerik blogs
  • Web ASP.NET AJAX

    Meet the RadRotator’s Cousin, the RadTicker for ASP.NET AJAX

    I recently posted an in-depth look at the RadRotator for ASP.NET AJAX. I feel it appropriate to follow-up that post with a discussion about another oft-overlooked control in Telerik’s ASP.NET AJAX suite, the RadTicker. The RadTicker is closely related to the RadRotator for ASP.NET AJAX, but boasts its own unique functionality. Whereas the RadRotator is best suited for richer content, such as images and HTML markup, the RadTicker is designed specifically to display text. The RadTicker uses client script to display a single character of text in a given interval, simulating a “typewriter” effect. While it has many of the same...
    January 26, 2009
  • Web

    Custom template columns with RadGridView for Silverlight

    Using GridViewCell template you can create your own template columns in less than a minute: <telerik:RadGridView Name="RadGridView1" IsFilteringAllowed="False" IsReadOnly="True" ShowGroupPanel="False" AutoGenerateColumns="False"> <telerik:RadGridView.Columns> <telerikGridView:GridViewDataColumn HeaderText="ID" UniqueName="ID" /> <telerikGridView:GridViewDataColumn Width="400" HeaderText="Name" UniqueName="Name"> <telerikGridView:GridViewDataColumn.CellStyle> <Style TargetType="telerikGridView:GridViewCell"> <Setter Property="Template"> ...
    January 26, 2009
  • Productivity

    Saving a few lines of code. Part IV - Refactoring switch statements

    Before going into details about how you could refactor a switch statement first I should say that there's nothing wrong with this statement (as with any other C#, VB.NET or whatever statement). Most probably you would want to refactor a switch in one of these scenarios: It has reached a certain amount of lines of code so that you need to scroll in order to see all the cases. When you want to introduce some new functionality you inevitably end up adding new cases to the switch statement. When you implicitly check for a type in a switch statement. In most...
    January 26, 2009
  • Release

    New "Your Links" menu on telerik.com

    As telerik.com grows bigger, you may start finding it time-consuming to navigate to the deeper pages in the site hierarchy. The increasing number of clicks is getting irritating, especially for regular visitors of the site.  We tried to tackle this problem by introducing a supplemental navigation tool (you need to be logged in to see it). The "Your Links" menu is straight-forward to use: bookmark, rearrange and delete your favorite telerik.com pages. 1. Go to the page you want to bookmark and expand the menu.  2. Bookmark the currently opened page by pressing the "Add Current Page" button. 3. Type in the name of...
    January 25, 2009
  • Web

    Simulating a layout transform for text in Silverlight 2.0

    The Telerik charting team is hard at work on making our WPF chart compatible with Silverlight. In the process we are faced with numerous limitations of SL. One of the more cunning problems I’ve faced was the fact that there are still no layout transforms available which leads to some wacky problems when you try to rotate text. Let’s assume a very simple layout consisting of a single grid with two columns, one with width=”auto”  and the other with width=”*”. The first column contains a string of text. Here is how it looks before any transforms are applied: <Grid x:Name="LayoutRoot" Background="SkyBlue"> ...
    January 23, 2009
  • Web ASP.NET AJAX

    Meet the RadRotator&rsquo;s Cousin, the RadTicker for ASP.NET AJAX

    I recently posted an in-depth look at the RadRotator for ASP.NET AJAX. I feel it appropriate to follow-up that post with a discussion about another oft-overlooked control in Telerik’s ASP.NET AJAX suite, the RadTicker. The RadTicker is closely related to the RadRotator for ASP.NET AJAX, but boasts its own unique functionality. Whereas the RadRotator is best suited for richer content, such as images and HTML markup, the RadTicker is designed specifically to display text. The RadTicker uses client script to display a single character of text in a given interval, simulating a “typewriter” effect. While it has many of the same...
    January 26, 2009
  • Web

    Custom template columns with RadGridView for Silverlight

    Using GridViewCell template you can create your own template columns in less than a minute: <telerik:RadGridView Name="RadGridView1" IsFilteringAllowed="False" IsReadOnly="True" ShowGroupPanel="False" AutoGenerateColumns="False"> <telerik:RadGridView.Columns> <telerikGridView:GridViewDataColumn HeaderText="ID" UniqueName="ID" /> <telerikGridView:GridViewDataColumn Width="400" HeaderText="Name" UniqueName="Name"> <telerikGridView:GridViewDataColumn.CellStyle> <Style TargetType="telerikGridView:GridViewCell"> <Setter Property="Template"> ...
    January 26, 2009
  • Productivity

    Saving a few lines of code. Part IV - Refactoring switch statements

    Before going into details about how you could refactor a switch statement first I should say that there's nothing wrong with this statement (as with any other C#, VB.NET or whatever statement). Most probably you would want to refactor a switch in one of these scenarios: It has reached a certain amount of lines of code so that you need to scroll in order to see all the cases. When you want to introduce some new functionality you inevitably end up adding new cases to the switch statement. When you implicitly check for a type in a switch statement. In most...
    January 26, 2009
  • Release

    New "Your Links" menu on telerik.com

    As telerik.com grows bigger, you may start finding it time-consuming to navigate to the deeper pages in the site hierarchy. The increasing number of clicks is getting irritating, especially for regular visitors of the site.  We tried to tackle this problem by introducing a supplemental navigation tool (you need to be logged in to see it). The "Your Links" menu is straight-forward to use: bookmark, rearrange and delete your favorite telerik.com pages. 1. Go to the page you want to bookmark and expand the menu.  2. Bookmark the currently opened page by pressing the "Add Current Page" button. 3. Type in the name of...
    January 25, 2009
  • Web

    Simulating a layout transform for text in Silverlight 2.0

    The Telerik charting team is hard at work on making our WPF chart compatible with Silverlight. In the process we are faced with numerous limitations of SL. One of the more cunning problems I’ve faced was the fact that there are still no layout transforms available which leads to some wacky problems when you try to rotate text. Let’s assume a very simple layout consisting of a single grid with two columns, one with width=”auto”  and the other with width=”*”. The first column contains a string of text. Here is how it looks before any transforms are applied: <Grid x:Name="LayoutRoot" Background="SkyBlue"> ...
    January 23, 2009