Telerik blogs

Latest

  • Desktop WPF

    Tracking down memory leaks in WPF and Silverlight

    As a component vendor we need to be extra cautious about the quality of the code we ship. Design, presentation, performance etc. are all very important for us. One item that is often overlooked in the .NET community is memory leaks. It is a quite a precarious issue, because most people believe that in the managed world it is not possible to have a memory leak. Well, if you thought so you are in for a surprise. The idea of the blog post is not to explain what memory leaks are, how the garbage collector works and so on. These things...
    May 27, 2021 4 min read
  • 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...
    May 27, 2021 2 min read
  • Release

    New Training Session on Silverlight Routed Events

      With the Windows Presentation Foundation a new type of events were introduced - the Routed Events. They have provided the developer with an entirely new approach to the eventing and the event handling. Basically, Routed Events traverse the logical tree upwards or downwards, depending on their Routing Strategy – Bubble and Tunnel respectively.  To get deeper with what the routed events are and how RadControls for Silverlight uses them we prepared this comprehensive training session. Before launching the video session you might check the Hristo Hristov's blog on Routed Events in Silverlight 2 and our dedicated page on support for routed events at: http://www.telerik.com/products/silverlight/resources/routed-events-framework.aspx.    ...
    May 27, 2021 1 min read
  • 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...
    May 27, 2021 1 min read
  • 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...
    May 27, 2021 3 min read
  • Desktop WinForms

    RadGridView's Serialization Made Easy (WinForms)

    Hello to all! My name is Deyan and I am a new member of the Telerik WinForms Team. In my first blog post I will talk about the RadGridView’s Serialization API and will shortly explain some fundamentals that would help you understand how to utilize it. In case of further interest on this topic, I have prepared a KB article and a demo application to demonstrate different serialization scenarios using the API. The default serialization settings imply that all visible properties are stored in the XML output. In cases when you want to only store some simple layout settings without paying attention to...
    May 27, 2021 2 min read
  • Desktop WPF

    Easy programmatic UI customization for WPF and Silverlight

    I’m pleased to announce that with Q1 2009 release of RadControls for WPF / Silverlight you will be able to manipulate the controls very easily with two powerful extension methods: ParentOfType<> and ChildrenOfType<>. Here are several small demos for RadGridView: 1) Get all grid rows:      var rows = RadGridView1.ChildrenOfType<GridViewRow>(); 2) Get all grid cells:      var cells= RadGridView1.ChildrenOfType<GridViewCell>(); 3) Get all grid header cells:      var headerCells = RadGridView1.ChildrenOfType<GridViewHeaderCell>(); 4) Get (and show) new row:      var newRow = RadGridView1.ChildrenOfType<GridViewNewRow>().First();     ...
    May 27, 2021 2 min read
  • Release

    Another new Telerik product - conundrum

    We'll be releasing a new product for Q1 and will be posting a ton of details about it in the coming weeks. Before that happens though, I thought I'd give everyone a chance to win a very special, limited-edition Telerik T-shirt. All you need to do is to provide a correct answer to the riddle below (which can give you some clues about the new product but you still need to be a bit creative): "I am a product of art Your capabilities I'll test And put all worries to rest In Visual Studio I run And using me is fun" Enjoy! p.s. Please use real names that I can identify in our database so...
    May 27, 2021 1 min read
  • People

    Free webinar on RadGridView for WPF on February 5

    We are happy to invite you to the second session of the free Telerik webinar series that will take place every Thursday at 11:00 am EST. This week’s session will be presented by Telerik Evangelist John Kellar, who will introduce you to the powerful RadGridView for WPF. Built from the ground-up to take advantage of the WPF platform and the .NET 3.5 framework, RadGridView for WPF represents the next generation in flexible data presentation controls you need to build powerful line of business applications. In this session, John will provide an overview of RadGridView and help you understand all of its capabilities....
    May 27, 2021 1 min read
  • Productivity

    Saving a few lines of code. Part V - Raising events.

    As you read the title of this post you may ask yourself - Hmmm, raising an event... wasn't that achievable with 1-2 lines of code? How smaller could it get, 0 lines of code? And you're almost right, to raise an event is not such a big deal. Supposing you have an event of type EventHandler. public event EventHandler Clicked;     Typically you have a virtual protected method which raises the event: protected virtual void OnClicked(EventArgs e)   {       if (Clicked != null)           Clicked(this, e);   }    Pretty simple unless you want to be thread safe (well... almost thread safe), then you should add one additional line: protected virtual void OnClicked(EventArgs e)...
    May 27, 2021 2 min read