Telerik blogs

Latest

  • Web

    Data Virtualization for your Silverlight and WPF Applications

    I’m happy to announce that with our Q3 2010 Release of RadControls for Silverlight and WPF you will be able to load records on demand using our brand new VirtualQueryableCollectionView: The collection will load records only when needed and you can check it in action on our beta demos: http://demos.telerik.com/silverlight/beta/#DataVirtualization/FirstLook I’ve attached also two applications to illustrate how to use VirtualQueryableCollectionView in different scenarios: - Directly with IQueryable in WPF Download - Using ItemsLoading event / Load() method in Silverlight Download Enjoy! ...
    May 27, 2021 1 min read
  • Web

    Blend, DevConnections, and Lighting Up The Web

    Hey Telerik Developers! I wanted to write a slightly out-of-band post to mention some of the speaking engagements that I will have over the next few months, covering a wide range of topics in the Silverlight and Windows Phone 7 space. First up, Telerik is pleased to host Expression Blend for Silverlight Developers, a one hour webinar being presented on October 21st aimed at helping the Telerik Developer Community (and for that matter, everyone using Silverlight, WPF, or Windows Phone 7) to learn a little bit more about Expression Blend and how it can fit into our daily development workflows.  You can...
    May 27, 2021 5 min read
  • Web ASP.NET MVC

    RadChart for Silverlight in ASP.NET MVC Application

    The purpose of this blog post is to show how to incorporate RadChart for Silverlight in an ASP.NET MVC application. Manol has already shown how to do this for ASP.NET and things are not much different for ASP.NET MVC. Let’s start with a simple Silverlight application with a single RadChart. For simplicity, I will populate it with a list of numbers, you can also use any of the techniques, supported by RadChart. The code is as simple as this XAML: <telerik:RadChart x:Name="RadChart1" /> And C#: RadChart1.ItemsSource = new double[] { 3d, 4d, 6d };   I will create two write-only properties of the Silverlight user control -- ShowItemLabels and SeriesType. They are marked with  ScriptableMemberAttribute so...
    May 27, 2021 2 min read
  • Web ASP.NET MVC

    Using nested complex objects with ASP.NET MVC editor templates

    This may be common knowledge but I failed to quickly find the relevant info when it hit me. In short the default editor template generated by ASP.NET MVC 2 ignores any nested complex properties of your model. Here is a short example which demonstrates the case:   Model: public class Customer{ public int ID { get; set; } public string FirstName { get; set; } public string LastName { get; set; } public Address Address { get; set; }} public class Address{ public string Street { get; set; } public string City { get; set; }} Controller: public class HomeController : Controller{ // // GET: /Home/ public ActionResult Index() { return View(new Customer { ...
    May 27, 2021 3 min read
  • Web

    How to: Databind Telerik’s ToolBar

    In this post we will go through a scenario for databinding the RadToolBar control. Here is the end result: And the demo project with everything included: ToolBarMVVM.zip How to databind the ToolBar? The ToolBar is an ItemsControl and can be databound to any IEnumerable, but it is preferable to bind it to an observable collection since any changes in it will be reflected by the ToolBar. Since there is no ToolBarItem, because ToolBar may contain variety of other controls, we will use DataTemplateSelector class to help us determine the template for each item inside the ToolBar: public class ToolBarTemplateSelector : DataTemplateSelector     {         public override DataTemplate SelectTemplate(object item, DependencyObject container)         {             if (item...
    May 27, 2021 3 min read