Telerik blogs
  • Web

    Quick and painless Byte Array to Image converter for RadGridView for Silverlight

    We received a question today in regards to a binding issue with RadGridView, or rather an issue with an Image in a custom cell template that the customer was trying to bind to a custom value.  They had the basic setup right: <DataTemplate>    <Image Source="{Binding ImageData}" /> </DataTemplate> But something wasn't quite working right.  After doing a little digging, we found that they weren't sending a URI to the Image but rather a byte array.  Unfortunately, the Image control in Silverlight doesn't quite know how to pick up on this so you need to convince it- with a converter. With a little bit of coding...
    May 27, 2021 2 min read
  • Web ASP.NET AJAX

    RadGrid for ASP.NET AJAX Performance Optimization

    For those of you who have missed the live webinar last week a recording is now available on Telerik TV. There are plenty of tips how to optimize your ASP.NET AJAX applications and especially those with RadGrid....
    May 27, 2021 1 min read
  • Web

    GridView in ComboBox with RadControls for Silverlight

    Recently we received several requests for an example, demonstrating how to put a virtualized GridView in a ComboBox popup. The best way to do this in my opinion is to replace the ItemsPresenter of the ComboBox with a GridView. There is some plumbing that has to be done, but I managed to separate it in two attached behaviors. The original idea is described in my blog post for TreeView in ComboBox which I recently updated with the latest control template of RadComboBox for Silverlight. The principle is exactly the same with RadGridView and it should work with very minor adjustments with...
    May 27, 2021 3 min read
  • Desktop WinForms

    Picking and Choosing Columns with RadGridView for WinForms

    Have you ever run into a situation where you needed to allow a user to select which columns they want to see in a grid?  If you are using the RadGridView for WinForms you don’t have to lift a finger to implement this functionality.  The Column Chooser is available for the RadGridView out of the box.  Simply bind your data and you are ready to go.  You can access the Column Chooser by right clicking on any column and selecting Column Chooser from the context menu.  The Column Chooser is displayed as a floating window next to the application.  You can now drag...
    May 27, 2021 2 min read
  • Desktop WinForms

    Computing Values in the RadGridView for WinForms

    When working with data there are a number of occasions where you may want to calculate a value for display within a grid.  Did you know you can do this within the RadGridView itself?  It is really quite simple.  To compute a column within the RadGridView you need to set the Expression property of the destination column.  This may be a new column that you are adding to the grid to store the value or you can override the value of an existing column by setting the Expression property.  Below is an example of the syntax to calculate an average across all...
    May 27, 2021 2 min read