Telerik blogs

Latest

  • Desktop WPF

    Master/Detail with RadGridView for WPF using ObjectDataProvider and ADO.NET Entities

    In my previous post, I showed how to instantiate LINQ to SQL DataContext using ObjectDataProvider in WPF. With ADO.NET Entities you can do something similar: <Grid.Resources> <ObjectDataProvider x:Key="customers" ObjectType="{x:Type local:NorthwindEntities}" MethodName="get_Customers"> </ObjectDataProvider> <ObjectDataProvider x:Key="orders" ObjectType="{x:Type local:NorthwindEntities}"...
    May 27, 2021 1 min read
  • Release

    RadComboBox and ASP.NET AJAX 4.0 Preview &ndash; using client-side templates and webservice load on demand

    Edit: The following content applies to ASP.NET Ajax 4.0 Preview 4. Download the project that uses the latest MS Ajax 4.0 Preview 6 from Here Many of you have asked us, the ASP.NET support officers, whether RadComboBox supports templates when bound to WebService. Using the latest official .NET Framework (3.5) the answer was ‘no’. Fortunately, this is possible with the client-side templates introduced in the next version of the .NET Framework – 4.0. Currently it is in a Preview stage and you can find its roadmap here.  We have already demonstrated how to use the new client-side templates in RadTreeView and RadGrid.
    May 27, 2021 4 min read
  • 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....
    May 27, 2021 1 min read
  • 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...
    May 27, 2021 2 min read
  • 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"> ...
    May 27, 2021 1 min read
  • 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...
    May 27, 2021 2 min read
  • 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...
    May 27, 2021 3 min read
  • Release

    The New Telerik TV Video Portal is Live

    We are excited to announce the launch of our brand new video portal—Telerik TV—a gateway to all Telerik video resources. The portal was designed with the purpose of becoming your “one-stop-shop” for all Telerik video materials, making it easy to discover video support resources. The new video portal allows you to watch the latest or most popular videos on Telerik product lines, or simply browse the various Telerik TV channels—TelerikWatch Minute presented by our Chief Evangelist, Todd Anglin; RadTips with Kevin Babcock, another Telerik Evangelist; EdgeOfDev, focusing on interesting industry trends; and Telerik Real World - a virtual library of showcase videos dedicated...
    May 27, 2021 1 min read
  • Web

    Customizing the Radial RadGauge

    Hello everyone and happy new year. Today I decided to break the lengthy silence on my blog with an example on how to customize the RadGauge. Since there were a couple of requests for custom Radial Gauge, I will present a way to create a semi-circle gauge. That is generally achieved in two steps: Customize the radial scale range Four parameters define the radial scale range: StartAngle, SweepAngle, Radius and Center. The StartAngle and SweepAngle are specified in degrees (0 to 360), starting from the right side of the gauge, going clockwise (note, that positive angle direction is starts from positive X and goes to the positive...
    May 27, 2021 3 min read
  • Release

    Telerik WinForms examples can be viewed directly from the web

    Up until today, of all product lines that Telerik offers only RadControls for WinForms required full installation of the product in order to view the examples the suite comes with. All other product lines had a web version of their Quick-Start Frameworks (QSFs), making product and feature reviews easy and trouble-free. Ever since the introduction of RadControls for WinForms a couple of years ago, we have been looking for ways to provide the WinForms demos to our customers without asking them to install the suite beforehand. Yes, there are several technologies which allow WinForms apps to run in web-based environments, but...
    May 27, 2021 2 min read