Telerik blogs
  • Web

    Enable RadGridView’s rows reorder functionality using Behaviors

    Using RadControls can boost the development process, using bunch of built-in features. However, sometimes we encountered scenarios where we need something very specific. In addition, we do want to make our custom logic encapsulated and easy reusable.  So,when this is the case,using behaviors is our best choice. In this blog I will show small example how to use the behavior power to enable row reorder functionality.     In order to enable drag and drop functionality, it simply uses our RadDragAndDropManager, giving us simple solution for the drag/drop functionality. So in order to use it and customize it we can even go the...
    May 20, 2010 1 min read
  • Desktop WinForms

    Styling Cells in RadGridView for WinForms

    In RadGridView you have to handle the CellFormatting event when you want to customize the look and feel of grid cells. This is so because RadGridView uses UI virtualization. It creates elements only for cells that are currently visible - when scrolling they are reused. Of course, it will be much easier if we could access the cell directly and set its visual properties without an event. In our next release (Q2 2010) this will be possible. By using the Style property you can set the desired background color or change the font size. Here is a sample: this.radGridView1.Rows[5].Cells["Name"].Style.BackColor = Color.Red; this.radGridView1.Rows[5].Cells["Name"].Style.Font = new Font(SystemFonts.DialogFont, FontStyle.Italic);   All...
    May 11, 2010 1 min read
  • Desktop WinForms

    Flexible data conversion with RadGridView for WinForms vNEXT

    One of the new features that will come with the next version of RadGridView is the new data conversion layer. In our daily work we have often got into troubles in visualizing and formatting concrete types as other types. Sometimes the data source is not compatible with the bind target. Hence, you need to create a facade that converts the data to desired type. Let’s say that you bind the grid to a source that is incompatible with the columns that you want to show, for example a GridViewCheckBoxColumn for char field instead of GridViewTextBoxColumn. How can you accomplish that? The new version of RadGridView will...
    April 30, 2010 4 min read
  • Web ASP.NET AJAX

    RadGrid for ASP.NET Ajax and LINQ

    One of the most-asked questions when it comes to the ASP.NET Ajax RadGrid is "How do I improve performance?". We have covered this in some Webinars and videos that can be found on Telerik TV in a series which has been released in three parts: Part One, Part Two and Part Three. One thing I wanted to bring up with respect to performance is the usage of LINQ (Language Integrated Query) and our RadGrid. Although LINQ has been out since the initial release of .NET 3.5 I still receive quite a few questions when it comes to using it with our...
    April 28, 2010 9 min read
  • Release

    RadGridView for WinForms vNEXT is coming

    The new version of RadGridView is coming in May (as beta) and I am eager to show you some of the new features. There are many methods to indicate errors in RadGridView. However, until now it didn’t support the most natural and easy way for this - the IDataErrorInfo interface. Things have changed, so let me show you how to use this interface.   As MSDN says,“IDataErrorInfo provides the functionality to offer custom error information that a user interface can bind to.” Actually, you don't need to know anything about this interface. You can just set the ErrorText property of the desired row or cell: this.radGridView1.Rows[5].ErrorText = "There...
    April 28, 2010 2 min read