• Silverlight 3 to launch July 10

    silverlight3

    More info @ http://blogs.zdnet.com/microsoft/?p=2912

    Enjoy! :)

  • How To: Twitter search with RadGridView for Silverlight and Twitter REST API

    I’ve made small demo application on how to search Twitter using Twitter REST API and RadGridView for Silverlight
    TwitterSearch

    To download Twitter ATOM response you can use simple WebClient:

    if (!String.IsNullOrEmpty(TextBox1.Text))
    {
        WebClient client = new WebClient();
        client.DownloadStringCompleted += newDownloadStringCompletedEventHandler(client_DownloadStringCompleted);
        if(!client.IsBusy)
            client.DownloadStringAsync(new Uri(String.Format(urlFormat, TextBox1.Text, pageSize, currentPageIndex)));
    }

    and you can parse the response using XDocument.Parse() method:

    XNamespace atomNamespace = "http://www.w3.org/2005/Atom";
    RadGridView1.ItemsSource = from item in XDocument.Parse(e.Result).Descendants(atomNamespace + "entry"
                              select new TwitterEntry
                             
    {
                                   ID = item.Element(atomNamespace + "id").Value,
                                   ...

  • Lightweight DataTable for your Silverlight applications

    Since there is no DataTable in Silverlight I’ve created small class that can be used to generate columns and rows in runtime in similar to the real DataTable way:

    DataTable  table =  new  DataTable();
    
    table.Columns.Add(new  DataColumn() { ColumnName =  "ID", DataType =  typeof(int) });
    table.Columns.Add(new  DataColumn() { ColumnName =  "Name", DataType =  typeof(string) });
    table.Columns.Add(new  DataColumn() { ColumnName =  "UnitPrice", DataType =  typeof(decimal) });
    table.Columns.Add(new  DataColumn() { ColumnName =  "Date", DataType =  typeof(DateTime) });
    table.Columns.Add(new  DataColumn() { ColumnName ...
  • Full support for DomainDataSource with RadGridView for Silverlight 3

    I'm happy to announce that with our next service pack you will be able to bind RadGridView completely codeless to DomainDataSource in Silverlight 3:

    Untitled

    <Grid>
      <Grid.RowDefinitions>
        <RowDefinition  />
        <RowDefinition  Height="30"  />
      </Grid.RowDefinitions>
      <riaControls:DomainDataSource  x:Name="DomainDataSource1"  AutoLoad="True"  LoadMethodName="LoadCustomers">
        <riaControls:DomainDataSource.DomainContext>
          <localWeb:NorthwindDomainContext  />
        </riaControls:DomainDataSource.DomainContext>
      </riaControls:DomainDataSource>
      <telerik:RadGridView  x:Name="RadGridView1"  ItemsSource="{Binding Data, ElementName=DomainDataSource1}" />
      <df:DataPager  x:Name="DataPager1"  Grid.Row=...
  • How To: Custom header context menu with RadGridView for Silverlight

    Another popular feature in RadGrid for ASP.NET AJAX is header context menu and I’ve made small demo how to achieve the same in RadGridView for Silverlight:
     Untitled

    Similar to the custom filter row you can enable this functionality for your grid with a single property:

    <telerikGrid:RadGridView  x:Name="RadGridView1" 
                  telerikGridViewHeaderMenu:GridViewHeaderMenu.IsEnabled="True"  telerik:StyleManager.Theme="Vista" />
    

    Enjoy!

    [Download]

  • How To: RadGridView for Silverlight row context menu in three simple steps

    Untitled

    To enable RadContextMenu for every grid data row you should do:

    1) Handle RowLoaded event for the grid and create RadContextMenu:

    void  RadGridView1_RowLoaded(object  sender,  RowLoadedEventArgs  e)
    {
         if  (!(e.Row  is  GridViewHeaderRow) && !(e.Row  is  GridViewNewRow))
        {
             RadContextMenu  rowContextMenu =  new  RadContextMenu();  // create menu
             StyleManager.SetTheme(rowContextMenu,  StyleManager.GetTheme(RadGridView1));  // set menu Theme
    
            // create menu items
             rowContextMenu.Items.Add(new  RadMenuItem() { Header =  "Show row ID property value"  });
            rowContextMenu.Items.Add(new  RadMenuItem() { Header =  "Item2", IsEnabled =  false  });
            rowContextMenu.Items.Add(new  RadMenuItem() { Header =  "Item3", IsEnabled =  false  });
            
             // ...
  • How To: Save and load settings with RadGridView for Silverlight

    I’ve made another demo (similar to this one) on how to save and restore various RadGridView settings using IsolatedStorageFile and DataContractSerializer. Again to turn on this for your grid you can simply set RadGridViewSettings.IsEnabled attached property:

    <
    UserControl x:Class="SaveLoadSettingsWithRadGridViewForSilverlight.Page"
      
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      
    xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
       
    xmlns:ts="clr-namespace:Telerik.Settings">
        <
    Gridx:Name="LayoutRoot"Background="White">
            <
    telerik:RadGridView ts:RadGridViewSettings.IsEnabled="True" x:Name="RadGridView1" />
        </
    Grid>
    </
    UserControl>

    Saved settings are

    • Sorting
    • Grouping
    • Filtering ...
  • How To: Custom filter row with RadGridView for Silverlight

    Since our RadGrid for ASP.NET AJAX filter row is very popular, I’ve made small demo how to achieve the same in RadGridView for Silverlight:

    Untitled 

    To turn on this for your grid you can simply set GridViewFilterRow.IsEnabled attached property:

    <UserControl  x:Class="CustomFilterRow.Page"
         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
         xmlns:telerikGridViewFilter="clr-namespace:Telerik.Windows.Controls.GridView.Filter"  xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView">
        <Grid  x:Name="LayoutRoot"  Background="White">
            <telerik:RadGridView  x:Name="RadGridView1"  AutoGenerateColumns="False"
                 telerikGridViewFilter:GridViewFilterRow.IsEnabled="True">
                <telerik:RadGridView.Columns>
                    <telerik:GridViewDataColumn  HeaderText="ID"  DataMemberBinding="{Binding  ID}" ...
  • How To: Save and load settings with RadGridView for WPF

    I’ve made small demo on how to save and restore various RadGridView settings using ApplicationSettingsBase.
    To turn on this for your grid you can simply set RadGridViewSettings.IsEnabled attached property:

    <Window  x:Class="WpfApplication1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
    xmlns:local="clr-namespace:WpfApplication1"
    xmlns:ts="clr-namespace:Telerik.Settings" Title="Window1">
    <
    Grid>
    <
    Grid.Resources>
    <
    ObjectDataProvider x:Key="customers"
    ObjectType="{x:Type local:NorthwindDataContext}" MethodName="get_Customers">
    </
    ObjectDataProvider>
    </
    Grid.Resources>
    <
    telerik:RadGridView ts:RadGridViewSettings.IsEnabled="True" x:Name="RadGridView1"
    ItemsSource="{Binding ...
  • New Feature: Export styling and formatting in RadGridView for Silverlight/WFP

    I’m pleased to announce that with our upcoming service pack for Silverlight/WPF (middle of April) you will have the ability to style and format easily your data just before export:
    RadGridView

    Exporting event

    Excel

    Untitled3

    Enjoy!

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. »