Telerik blogs

Latest

  • 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
  • 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 ASP.NET MVC

    Using Silverlight Upload control with ASP.NET MVC

    [Download the complete final project] We got a customer inquiry today about how to integrate the Telerik Silverlight Upload control within an ASP.NET MVC site. This is quite an interesting scenario, especially with the new Drag and Drop from the file system coming with our Silverlight 4 release in the mid-March. I was not sure what should be done to run the SL upload in the MVC site. This was my first time experience with ASP.NET MVC 2 and it turned out to be a very pleasant and easy one. These are the steps that need to be followed: 1. Create an ASP.NET MVC site: 2....
    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="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 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

    Displaying images stored in MS SQL with RadGridView for Silverlight

    There are different ways to store images in a SQL database. In our little demo  we have the images placed as binaries in an image type column in a MS SQL table.. As you may know Silverlight works with a limited range of image formats(PNG and JPG). Therefore I have prepared a small sample database with a few jpeg images inside.   Silverlight being a client platform does not have direct access to the SQL server. It needs some server-side code to fetch the data. For the purposes of this demo I have used a WCF service  and Linq To Sql to connect to the database...
    January 12, 2010