Telerik blogs
  • Release

    New Telerik Trainer sessions for RadControls for WinForms

    We have posted two new Telerik Trainer sessions for our WinForms suite: An Overview of RadCalendar for WinForms, which shows its basic usage incl. setting some of its more important properties, how to use the Special Days collection, and how to style a particular day by using the Visual Style builder. The session is about 10min long and comes with working samples in VB and C# (for both VS2005 and VS2008). Download session (ZIP 17.8 MB). The other session, on RadComboBox for WinForms, is about 15 min long and demonstrates the various autocompletion modes, and how to take advantage of the multi-line text support....
    January 15, 2009
  • Web

    Encode and Decode strings using JavaScript

    In order for a string to be read from all computers sometimes it is useful to encode and decode it. This can be easily achieved using the JavaScript built-in escape() and unescape() methods. Both the escape() and the unescape() methods have the same argument – the string which will be escaped or unescaped. The escape() method returns a string value (in Unicode format) that represents the encoded contents of the function argument. All spaces, punctuation, accented characters, and any other non-ASCII characters are replaced with %xx encoding, where xx is equivalent to the hexadecimal number representing the character. For example, a space is returned as "%20". Additionally, having...
    January 15, 2009
  • Desktop WPF

    How To: WPF declarative binding to LINQ to SQL using ObjectDataProvider

    With ObjectDataProvider you can easily instantiate LINQ to SQL DataContext and request desired ITable using GetTable method: <Window x:Class="WpfObjectProviderWithLinqToSql.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" xmlns:local="clr-namespace:WpfObjectProviderWithLinqToSql" Title="How to bind declaratively LINQ to SQL DataContext using ObjectDataProvider" Height="400" Width="500" ResizeMode="NoResize"> <Grid> <Grid.Resources> <ObjectDataProvider x:Key="customers" ObjectType="{x:Type local:NorthwindDataContext}" MethodName="GetTable"> ...
    January 14, 2009
  • Web

    BDD. At first I was afraid, I was petrified.

    Yes, seriously, my first reaction to a post in which I noticed BDD-kinda-tests was something like "whoa, interesting naming convention for test method names, and all these underscores...". After that I came upon several other blog posts containing BDD tests and I still didn't get the idea. Then I read Dan North's post introducing the idea of Behavior Driven Development and I finally started catching the point. But catching the point at that time was not like "well, it's worth it and I'll try it" but rather like "ok, it's a TDD variation with some funky new lingo, so... ok". I could abandon...
    January 14, 2009
  • Desktop WPF

    Implementing the RadNumericUpDown for WPF

    I am sure that you are wondering why I would spend time blogging about implementing a control as simple as the RadNumericUpDown for WPF.  After all this is not a complex control and if you have done any client development you have probably used a NumericUpDown in the past.  Well, this is not the same control and it does have some nice features that you may not be aware are available.  I thought it might be nice to demonstrate some of these features. So most likely you have used the WinForms version of NumericUpDown and were limited to only a few...
    January 13, 2009
  • Release

    New Telerik Trainer sessions for RadControls for WinForms

    We have posted two new Telerik Trainer sessions for our WinForms suite: An Overview of RadCalendar for WinForms, which shows its basic usage incl. setting some of its more important properties, how to use the Special Days collection, and how to style a particular day by using the Visual Style builder. The session is about 10min long and comes with working samples in VB and C# (for both VS2005 and VS2008). Download session (ZIP 17.8 MB). The other session, on RadComboBox for WinForms, is about 15 min long and demonstrates the various autocompletion modes, and how to take advantage of the multi-line text support....
    January 15, 2009
  • Web

    Encode and Decode strings using JavaScript

    In order for a string to be read from all computers sometimes it is useful to encode and decode it. This can be easily achieved using the JavaScript built-in escape() and unescape() methods. Both the escape() and the unescape() methods have the same argument – the string which will be escaped or unescaped. The escape() method returns a string value (in Unicode format) that represents the encoded contents of the function argument. All spaces, punctuation, accented characters, and any other non-ASCII characters are replaced with %xx encoding, where xx is equivalent to the hexadecimal number representing the character. For example, a space is returned as "%20". Additionally, having...
    January 15, 2009
  • Desktop WPF

    How To: WPF declarative binding to LINQ to SQL using ObjectDataProvider

    With ObjectDataProvider you can easily instantiate LINQ to SQL DataContext and request desired ITable using GetTable method: <Window x:Class="WpfObjectProviderWithLinqToSql.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" xmlns:local="clr-namespace:WpfObjectProviderWithLinqToSql" Title="How to bind declaratively LINQ to SQL DataContext using ObjectDataProvider" Height="400" Width="500" ResizeMode="NoResize"> <Grid> <Grid.Resources> <ObjectDataProvider x:Key="customers" ObjectType="{x:Type local:NorthwindDataContext}" MethodName="GetTable"> ...
    January 14, 2009
  • Web

    BDD. At first I was afraid, I was petrified.

    Yes, seriously, my first reaction to a post in which I noticed BDD-kinda-tests was something like "whoa, interesting naming convention for test method names, and all these underscores...". After that I came upon several other blog posts containing BDD tests and I still didn't get the idea. Then I read Dan North's post introducing the idea of Behavior Driven Development and I finally started catching the point. But catching the point at that time was not like "well, it's worth it and I'll try it" but rather like "ok, it's a TDD variation with some funky new lingo, so... ok". I could abandon...
    January 14, 2009
  • Desktop WPF

    Implementing the RadNumericUpDown for WPF

    I am sure that you are wondering why I would spend time blogging about implementing a control as simple as the RadNumericUpDown for WPF.  After all this is not a complex control and if you have done any client development you have probably used a NumericUpDown in the past.  Well, this is not the same control and it does have some nice features that you may not be aware are available.  I thought it might be nice to demonstrate some of these features. So most likely you have used the WinForms version of NumericUpDown and were limited to only a few...
    January 13, 2009