Telerik blogs

Latest

  • Desktop WPF

    Detail row for your WPF DataGrid with ADO.NET DataService binding

    Using GridViewRow template and simple trigger you can define, style and show details for every data row in your RadGridView very easily:      <Style TargetType="{x:Type telerik:GridViewRow}">         <Setter Property="Template">             <Setter.Value>                 <ControlTemplate TargetType="{x:Type telerik:GridViewRow}">                      <!--Your template goes here -->                 <ControlTemplate.Triggers>                     <MultiTrigger>                        <MultiTrigger.Conditions>                           <Condition Property="IsSelected" Value="True" />                           <Condition Property="IsCurrent" Value="True" />                        </MultiTrigger.Conditions>                        <SetterProperty="Visibility" TargetName="GroupBox" Value="Visible" /> ...
    May 27, 2021 1 min read
  • Desktop WPF

    Grouping data in the RadGridView for WPF

    When you first add the RadGridView to your WPF application you will undoubtedly notice the section at the top of the control which I have outlined in red.  This area is officially called the GridViewGroupPanel, but I am just going to call it the Group Panel to save myself some typing.  The Group Panel allows the user to drag and drop column headers into the panel in order to group the data in the RadGridView at runtime.  Below you will see that I have grouped my data by the "Make" column in my grid of vehicles. Additionally, the sort order of...
    May 27, 2021 3 min read
  • Productivity Reporting

    Reporting: How to set default value for a multivalue parameter

    Generally when you want to set a default value for a parameter, you use the Value property of the parameter (this.ReportParameters["MyParam"].Value), but what to set when you want all values to be selected by default  i.e you have a multivalue parameter? You can do that by providing an ArrayList containing all your values to the report parameter Value property. For consistency of the Tips & Tricks series, I am going to use the project from the Using Report parameters UI to sort by column blog post. Let's make the SortByColumn parameter accept multivalues by setting the MultiValue property to True. We...
    May 27, 2021 2 min read
  • Release

    RadControls for WinForms and Windows 7 beta

    A couple of days ago I finally managed to get my hands on the latest hype, Windows 7, and to give it a spin. The first impression I got after installing the new OS went to the performance improvements it offered – it felt better than Vista, and the boot up time was really impressive. Then came the appreciation of the UI improvements which seem to be a natural evolution of the features Vista introduced. Win7 goodies aside, I am happy to say that RadControls for WinForms run perfectly fine on the beta – there are no hiccups, messed layouts...
    May 27, 2021 1 min read
  • Web ASP.NET AJAX

    ASP.NET Ajax Controls in ASP.NET MVC - Announcing the sample application

    I am glad to announce that yesterday we released a public sample application built with RadControls for ASP.NET Ajax, ASP.NET MVC and Telerik OpenAccess. You can check the online demo, or download the source code. This application is a basic online forum which uses RadControls in ASP.NET and demonstrates integration with ASP.NET MVC. Here are a few screens from the forum: The "home" page (uses RadTreeView, RadGrid and RadMenu) The "new thread" page (shows RadEditor)
    May 27, 2021 1 min read
  • 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