Telerik blogs

Latest

  • 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

    MicroModels for Silverlight

    Last week I was impressed by Paul Stovell’s marvelous project – MicroModels. In a nutshell a micro model is a view model over your objects, which allow you to define dynamic properties, collection and commands. You can read more about it in Paul’s introductory blog post here. Despite its great features, “MicroModels” has one big limitation - it does not run in Silverlight. And this is where my journey began. My mission was to port the code to Silverlight with little to no modifications. Porting the code to Silverlight The task was not an easy one, but after a lot of head scratching...
    January 21, 2010
  • Web

    Training courseware for RadControls for Silverlight

    We now have a brand new, including over 1000 pages, free training courseware for RadControls for Silverlight. It provides tons of tips and tricks, how-to's, code samples (in XAML and both in C# and VB). All these structured in a step-by-step manner and covering most of the available RadControls for Silverlight. This training material will help you quickly get up to speed with Silverlight and will discuss some of the issues in common with all RadControls such as binding or theming, working with RIA Services (also WCF and ADO.NET), working with Expression Blend, etc.    The courseware is available to everyone...
    January 20, 2010
  • Web

    Handling multiple database connections with Telerik OpenAccess ORM

    Very often it is necessary to work simultaneously with more than one database. In such cases it is recommended that each database is mapped to a separate class model residing in its own assembly. The object scopes that handle the persistent objects should be obtained from an instance of the Database class which represents particular database on the server. To make this process easier Telerik OpenAccess ORM generates a helper class named ObjectScopeProvider. How to benefit from this class will be described later in this post. To explain practically how to configure the Visual Studio projects, consider the case of having...
    January 20, 2010
  • Web

    Highlighting Inline Search for RadGridView for Silverlight

    A common request on our forums is how to enable the Search As You Type online example to search in DateTime or Integer properties. Also recently another request was brought to our attention: How to highlight the matching search text in the grid cells. In this blog post I’m going to show you how to achieve these goals.   Let’s start our journey, by looking at the MainPage.xaml of the attached sample application:     1 <UserControl x:Class="DateTimeFiltering.MainPage"     2    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     3    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     4    xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"     5    xmlns:themes="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"     6    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"     7    xmlns:local="clr-namespace:DateTimeFiltering"     8    xmlns:jeff="clr-namespace:JeffWilcox.Samples;assembly=HighlightingTextBlock">    ...
    January 18, 2010