Telerik blogs

Latest

  • 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
  • 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...
    February 03, 2009
  • 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();     ...
    February 03, 2009
  • Desktop WPF

    WPF How To: Endless scrolling of 2mil. records using BackgroundWorker and LINQ to SQL

    I’ve made small demo how to create easily endless scrolling of almost 2 mil. records (exact count is 1770607) using RadGridView for WPF. When you reach the bottom of the vertical scrollbar, more data will be retrieved on-the-fly from the data-base server: For asynchronous data loading you can use BackgroundWorker: BackgroundWorker worker = new BackgroundWorker(); worker.DoWork += new DoWorkEventHandler(worker_DoWork); worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(worker_RunWorkerCompleted); worker.RunWorkerAsync(); … void worker_DoWork(object sender, DoWorkEventArgs e) { NorthwindDataContext context = new NorthwindDataContext(); queryable = from o in context.Orders from od in context.Order_Details ...
    February 02, 2009
  • Desktop WinForms

    Quickly Formatting Data with the RadGridView for WinForms

    Most developers have encountered a need at some point to modify how data is displayed to the user.  The RadGridView offers a very straightforward way to format data without having to modify the source data.  For example, you may not want the time displayed with a DateTime field, or you want to change the structure of the data to meet an internal standard.  The screenshot below shows three different fields which display the default DateTime format. This may be valid data, but it may not be useful to the user and we could potentially save screen real estate by eliminating...
    January 30, 2009