Telerik blogs

Latest

  • Web

    Creating CRUD application with RadDomainDataSource for Silverlight

    I will extend my colleague’s blog post series regarding RadDomainDataSource control with an example how to create simple CRUD (Create, Read, Update and Delete) application. For more information how to load data initially you can take a look at this blog post. Along with RadDomainDataSource control Telerik provides codeless solution for CRUD operations powered by WCF RIA Services. The solution is a combination between RadGridView and RadDomainDataSource.   First let’s create a default Silverlight project as following:     Next step is to create ADO.NET Entity data model called Northwind.edmx. For the sake of the example I’ll create this entity model with a Northwnd.mdf...
    December 28, 2010
  • Web

    Loading data with RadDomainDataSource for Silverlight

    will continue the series of blog posts about RadDomainDataSource with the most important one – the one about loading data. If you are not familiar with RadDomainDataSource then you should go back and read my introductory blog post. Let us move straight to the data load lifecycle. Triggering a Load A load operation can be triggered in two ways. You can either call the Load method explicitly or you can rely on the AutoLoad functionality, which I will explain later in this post. Building The Query After a load has been requested a query based on user input is constructed on the client. This query tells the...
    December 27, 2010
  • Web ASP.NET MVC

    Binding Telerik Grid for ASP.NET MVC to OData

    We have just made a nice demo application showing how to bind Telerik Grid for ASP.NET MVC to OData using Telerik TV as OData producer. The grid supports paging, sorting and filtering using OData’s query options. To do that we implemented a helper JavaScript routine (defined in an external JavaScript file which is included in the sample project) which is used to bind the grid. Here is how the code looks like: @(Html.Telerik().Grid<TelerikTVODataBinding.Models.Video>() .Name("Grid") .Columns(columns => { columns.Bound(v => v.ImageUrl).Sortable(false).Filterable(false).Width(200).HtmlAttributes(new { style="text-align:center" }); ...
    December 16, 2010
  • Web

    Server sorting and filtering with WCF RIA Services and Telerik Data Virtualization for Silverlight

    I’m happy to announce that with our upcoming service pack (Q3 2010 SP1) you will be able to sort, filter and load records on demand with WCF RIA Services and our VirtualQueryableCollectionView.   To enable this we’ve added two extension methods for EntityQuery<T> and now you can use directly VirtualQueryableCollectionView SortDescriptors and FilterDescriptors: var context = new NorthwindDomainContext(); var query = context.GetOrder_DetailsQuery().OrderBy(o => o.OrderID); var view = new VirtualQueryableCollectionView() { LoadSize = 10, VirtualItemCount = 100 }; view.ItemsLoading += (s, e) => { var queryToLoad = query .IncludeTotalCount(true) ...
    December 09, 2010
  • Web

    Some insight on the Telerik Weather Station application

    We have recently uploaded the Weather Station demo showing some of Telerik controls for Silverlight in a great rich context. Following Kalin’s blog post announcing the main features, this one is to provide some notes on the technical side of the matter. Here is a list of the main features: Find client’s location upon startup and retrieve weather information if available. Store current locations and favorite ones in the local storage for proper loading on next startup of the application. Use two formats for weather values - Celsius and Fahrenheit. Search for custom location. Display brief location information (on smaller zoom levels) as well as...
    November 26, 2010