Telerik blogs
  • Release

    New Feature: RadGridView for Silverlight and WPF now can export totals to Excel, ExcelML, Word and CSV

    I’m happy to inform you that with our latest internal build you will be able to export the grid totals in all supported formats: Check the attached demo application & enjoy! Download ...
    January 25, 2010
  • Web

    How To: Serialize your DataTable to Silverlight using WCF service

    Did you know that you can serialize any DataTable to Silverlight easily from your custom WCF service in very few lines of code? [OperationContract] public IEnumerable<Dictionary<string, object>> GetData() { var table = YourDataTable; var columns = table.Columns.Cast<DataColumn>(); return table.AsEnumerable().Select(r => columns.Select(c => new { Column = c.ColumnName, Value = r[c] }) ...
    January 22, 2010
  • Web

    How To: Print your DataGrid (or any UIElement) on multiple pages with Silverlight 4

    In Silverlight 4 you can use PrintDocument to print easily any UIElement: …    var doc = new PrintDocument();    doc.DocumentName = YourDocumentName;    doc.PrintPage += (s, e) =>    {         e.PageVisual = YouUIElement;    };    doc.Print(); … and I’ve made an extension method that can be used to print any UIElement on multiple pages: public static void Print(this UIElement source, string documentName) { ...
    January 15, 2010
  • Web

    How To: Server sorting, filtering, grouping and paging with RadGridView for Silverlight without WCF RIA services

    With our upcoming service pack (Q3 SP2) of RadGridView for Silverlight all operation like sorting, grouping and paging on the server can be achieved completely codeless when the grid is bound to DomainDataSource and in my previous post I’ve showed how to do the same for filtering with minimum code. You can even force the grid vertical scrollbar to page on the server instead DataPager. Since WCF RIA services is still in beta I’ve made small example how to achieve sorting, grouping, paging and filtering using custom web service: XAML <UserControl x:Class="SilverlightApplication1.MainPage" xmlns="" xmlns:x="" xmlns:d="" xmlns:mc="" mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480" xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data" xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"> ...
    January 14, 2010
  • Web

    How To: Populate RadGridView for Silverlight distinct filters asynchronously using WCF RIA Services

    With our upcoming service pack (Q3 2009 SP2) you will be able to populate distinct values asynchronously using the DistinctValuesLoading event. To achieve this you can assign any INotifyCollectionChanged collection for distinct values ItemsSource and RadGridView will update the UI immediately on any change. I’ve made small demo on how to achieve this using WCF RIA Services and RadGridView bound to DomainDataSource with DataPager – in this case the grid distinct values are populated from the entire collection server-side not only from the current downloaded page:   server-side: public List<DistinctValue> GetDistinctValues(string propertyName) { var list...
    January 07, 2010