Telerik blogs

Latest

  • Desktop WPF

    Empty data template in RadGridView for Silverlight (and WPF)

      One more RadGridView behavior frequently requested by our clients is to display a message when there are no records to display. A typical real life scenario would be a RadGridView displaying a list of search results. When there are no results found we would like to have a message like “No results found!” displayed in RadGridView.       UPDATED VERSION FOR SL4 If you download the project above , you will see that if you get the EmptyDataTemplateBehavior.cs into your project, setting the empty data template will be as easy as writing a few lines of XAML : <telerik:RadGridView x:Name="RadGridView1" > <i:Interaction.Behaviors> <local:EmptyDataTemplateBehavior> <local:EmptyDataTemplateBehavior.EmptyDataTemplate> <DataTemplate> <TextBlock Text="No results...
    February 01, 2010
  • Desktop WPF

    Introduction to Prism with the RadControls for WPF (Webinar Resources)

    If you are interested in learning to use the Composite Application Guidance (better known as Prism), here are a few resources to get you started. Also, in case you missed it, you can watch the webinar associated with this blog entry here.   Webinar Resources Download: Project & Powerpoint Slides This download contains the project I started with in the webinar along with the completed version. Also included are the powerpoint slides. Click Here to Download Update (2/1/2010): In the video, I placed the command implementation directly in the view. The correct place to set this up is actually directly ...
    January 29, 2010
  • Desktop WinForms

    Cascading ComboBoxes Selection in RadGridView for Silverlight and WPF

      A common scenario when entering data is a cascade of comboboxes, where the list in the next combo is populated after selecting a value in the previous. A typical example is selecting a country from a combo then selecting from a filtered list of cities in a second combo. We have had tons of questions on how this can be done within a row in RadGridVIew so I decided to make a small demo. I have used a nice List of countries by continent.           There are lots of ways to achieve this with RadGridView. Bellow I have tried to demonstrate...
    January 27, 2010
  • Desktop WinForms

    Sales Dashboard Application for Windows Forms

    Shortly after the Q3 2009 release we developed the Sales Dashboard Application for Windows Forms - a composite business application for visualizing a company’s sales force performance. It is built with the Q3 2009 versions of Telerik’s WinForms components, RadChart for WPF, Telerik OpenAccess ORM, and implements the Telerik CAB Enabling Kit for WinForms, which helps in the development of smart-client line-of-business (LOB) applications. Since the interest in this application is still high, we felt the need to have a dedicated place to discuss this application. In case you have not played with it yet, download the source code, and enjoy!   Also check: Silverlight/WPF Sales...
    January 26, 2010
  • Desktop WPF

    Filtering GridViewComboBoxColumn in RadGridView for WPF

      GridViewComboBox column is used to display lookup data in user friendly manner. For our demo we bind RadGridView for WPF to a collection of custom Location objects.       As you may notice – each location has a selectable Country field.  Here is the underlying ‘data model’.   public class Location { public int CountryID { get; set; } public string CityName { get; set; } } public class Country { public int ID { get; set; } public string Name { get; set; } }   The location object contains the integer CountryID.Each CountryID corresponds to a certain country and with the help of GridViewComboBoxColumn we see some human readable country names instead of the...
    January 20, 2010