Telerik blogs
  • Desktop WPF

    Setup a simple RadChart for WPF

    To get started working with any control, I find it useful to begin with a fresh project.  So below you will see that I have very simple XAML for my WPF application which adds a RadChart to the form.  In this post, I want to demonstrate the basic setup and binding of data to the RadChart. <Window x:Class="CreateABasicChart.Window1"      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"      Title="Window1" Height="484" Width="750" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">...
    February 10, 2009
  • Desktop WPF

    WPF / Silverlight: RadChart and MVVM

    While reviewing the daily portion of blog posts today one article at Delay’s blog here caught my attention – customizing the MS chart control via re-templating and the MVVM design pattern in order to achieve different colorization of the bar series items in a single series. We have discussed similar functionality some time ago but it seemed like a very non-mainstream scenario and based on our experience with the ASP.NET / WinForms chart it was rarely requested feature so we decided we can go without it for the time being. However, once I read the article I started thinking what it would...
    February 05, 2009
  • Desktop WPF

    RadScheduler for WPF - Out of the box

    If you have a need for calendaring capabilities in your WPF application, look no further.  The RadScheduler brings you a number of capabilities with minimal effort.  I am going to discuss some of the core features that you get with the RadScheduler for WPF without implementing any code.  I thought a quick preview of what the control offers out of the box, might give you some ideas of how you leverage it in your applications.  To get started create a new WPF application and drop a RadScheduler onto the Window. <Window x:Class="WPFRadSchedule.Window1"      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"      Title="Window1" Height="600" Width="800           " xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">       <Grid>          <telerik:RadScheduler Margin="12" Name="radScheduler1" />      </Grid>  </Window>   The XAML above is a preview of what I...
    February 05, 2009
  • Web

    Insert, Update, Delete with OpenAccess and RadGridView for Silverlight

    Download I will show you how easy is to integrate OpenAccess with RadGridView for Silverlight. I get the example from my colleague Dimitur and make it work with our RadGridView. If you are interested how to make OpenAccess to work with ADO.NET Data Services please read his blog series. To allow inserting new rows in RadGridView we should attach to AddingNewDataItem event. <telerik:RadGridView x:Name="gridView" Grid.Row="1" AddingNewDataItem="GridViewAddingNewDataItem" /> And provide the newly created object in it. private void GridViewAddingNewDataItem(object sender, GridViewAddingNewEventArgs e) { e.NewObject = new Supplier(); } Now we can insert new objects. Next steps is to save changes to the database. We should attach to GridViewRow.EditEndedEvent. this.gridView.AddHandler(GridViewRow.EditEndedEvent, new...
    February 04, 2009
  • Desktop WPF

    How to use Custom Row Layouts in RadGridView for WPF

    Presenting data in a grid is common in many applications, but it doesn't have to look like a bunch or columns and rows.  With WPF you have freedom to make the data look totally different.  In this post, I am going to demonstrate using a custom row layout with the RadGridView for WPF.  To get started, I have setup a new window with a RadGridView.  I will be using the Northwind database Employees table for this example.  I would like to point out that if you are going to recreate this example, you will need to add the Window.Resources section...
    February 04, 2009