Telerik blogs
  • 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

    Paying Homage to the RadRotator for ASP.NET

    The RadRotator is a control that is easily overlooked in the RadControls for ASP.NET AJAX suite. It is not one of the more compelling controls like the RadGrid or the RadEditor, but it certainly provides a key set of functionality that is important in order for Telerik to claim that our suite is the most complete ASP.NET AJAX suite on the market. I’d like to take some time to show you what we have done to make the RadRotator a control that makes it easy for you, dear developer, to add rich functionality to your web applications. Overview The RadRotator for ASP.NET AJAX is...
    January 22, 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

    Paying Homage to the RadRotator for ASP.NET

    The RadRotator is a control that is easily overlooked in the RadControls for ASP.NET AJAX suite. It is not one of the more compelling controls like the RadGrid or the RadEditor, but it certainly provides a key set of functionality that is important in order for Telerik to claim that our suite is the most complete ASP.NET AJAX suite on the market. I’d like to take some time to show you what we have done to make the RadRotator a control that makes it easy for you, dear developer, to add rich functionality to your web applications. Overview The RadRotator for ASP.NET AJAX is...
    January 22, 2009