• Just Another Way to Visualize Your Data Using RadTreeView for Silverlight

    Monday, May 23, 2011 by Kiril Stanoev | Comments 2
    For the past couple of days I've been playing with the way RadTreeView renders its items. To be honest, I wasn't looking for any particular outcome. I was doing it just for fun, hoping that something interesting might come out. And it did. I ended up with something quite interesting and it would be a shame not to share it.
    Bellow are few screenshots which show the TreeView from its initial state to the point where its deepest item is expanded.







    Note: I do lack certain designer skills :)

    The TreeView is bound to an XML data source which has ...

  • Reading/Writing cookies with HtmlPlaceholder for Silverlight

    Tuesday, May 10, 2011 by Kiril Stanoev | Comments 1
    Recently we received a support ticket with a question whether RadHtmlPlaceholder provides support for cookies. By default, RadHtmlPlaceholder doesn't have a mechanism for reading/writing cookies. However, with the right bits of JavaScript, everything is possible :)
    Imagine you have an HTML page which you want to read/write cookies to and all this has to happen from Silverlight.

    First, you need few JavaScript methods for reading/writing cookies. Let's call the page we want to read/write cookies to CookiesPage.html.

    <html>
        <head>
            <title>Cookies Page</title>
            <script type="text/javascript">
                ...
  • Performance Improvements in RadSlider

    Friday, April 22, 2011 by Kiril Stanoev | Comments 0
    As Miro mentioned in his last post, with the upcoming 2011 Q1 Beta, we will release a new and improved version of RadSlider. A lot new features are being added and many of the existing hot spots were addressed along the way. One of them - the performance hit when RadSlider has to re-render its ticks. I took the liberty to compare the impact of RadSlider on an application before and after we made the improvements.
    Scenario: Every second, for 60 seconds, generate a new ViewModel and set it as DataContext to RadSlider.
    Goal: See how many times the ...
  • Using Silverlight's easing functions when expanding/collapsing items in TreeView and PanelBar

    Monday, February 14, 2011 by Kiril Stanoev | Comments 0

    With the upcoming Q1 2011 Beta release, we’ve decided to sugarcoat RadTreeView and RadPanelBar even more. With the release of Silverlight 3, Microsoft introduced easing functions which are basically “custom mathematical formulas to your animations. For example, you may want an object to realistically bounce or behave as though it were on a spring.” Incorporating easing functions within RadTreeView or RadPanelBar can be done using Telerik’s AnimationManager:

    Get Microsoft Silverlight

    xmlns:navigationAnimation="clr-namespace:Telerik.Windows.Controls.Animation;assembly=Telerik.Windows.Controls.Navigation"
     
    <!-- TreeView -->
    <telerik:RadTreeView>
        <telerik:AnimationManager.AnimationSelector>
            <telerik:AnimationSelector>
                <navigationAnimation:TreeViewExpandCollapseAnimation
                        AnimationName="Expand" Duration="0:0:1">
                    <navigationAnimation:TreeViewExpandCollapseAnimation.EasingFunction>
                        <...
  • How to Implement AutoScroll While Dragging in RadTreeView

    Thursday, November 25, 2010 by Kiril Stanoev | Comments 1

    With this short post I’ll explain how to achieve a functionality similar to the one shown bellow.


    Unable to display content. Adobe Flash is required.

     

    The key to achieving this scenario is to use Behaviors.

    Start off by adding a reference to the System.Windows.Interactivity.dll which is located in:

    [WPF]

    C:\Program Files (x86)\Microsoft SDKs\Expression\Blend 3\Interactivity\Libraries\WPF\

    [Silverlight]

    C:\Program Files (x86)\Microsoft SDKs\Expression\Blend\Silverlight\v4.0\Libraries\

    (note: the location of the binary might be different on your machine)

    Then create a class called AutoScrollBehavior.cs

    using System;
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Interactivity;
    using Telerik.Windows.Controls;
    using Telerik.Windows.Controls.DragDrop;
    #if SILVERLIGHT
    using EventManager = Telerik.Windows.EventManager;
    #endif  namespace TreeView.AutoScroll
    {
         ...

  • How To: Hierarchy Load On Demand With RadTreeView for Silverlight, MVVM and OData

    Tuesday, October 26, 2010 by Kiril Stanoev | Comments 0

    Similar to this post, I’ve made a similar example on how to load on demand RadTreeView for Silverlight three level hierarchy using MVVM and OData service: 

    XAML 

    <UserControl.Resources>
        <DataTemplate x:Key="OrderDetailsTemplate">
            <Grid>
               ...
            </Grid>
        </DataTemplate>
        <telerik:HierarchicalDataTemplate x:Key="OrderTemplate"
                ItemsSource="{Binding OrderDetailsCollection}"
                ItemTemplate="{StaticResource OrderDetailsTemplate}">
            <StackPanel Orientation="Horizontal">
               ...
            </StackPanel>
        </telerik:HierarchicalDataTemplate>
        <telerik:HierarchicalDataTemplate x:Key="CompanyTemplate"
                ItemsSource="{Binding OrdersCollection}"
                ItemTemplate...
  • Silverlight: OutlookBar, Prism and TransitionControl

    Monday, July 19, 2010 by Kiril Stanoev | Comments 2

    With this post, I'll show you a step by step approach on how to integrate RadOutlookBar with Prism. To spice thing a little bit, the transitions between the different Prism modules will be handled by RadTransitionControl.

    Start off by creating a new Silverlight solution. Name the Silverlight application Prism.Shell and the Web project - Prism.Web





     

    Organize the Solution Explorer a little bit by adding 3 solution folders.



     

    Right-click on the Modules solution folder and add 2 new Silverlight applications. These applications will be the modules of our Prism application. Name them Prism.Module1 and Prism.Module2. Also, make ...

  • What's new in Telerik TileView control for Silverlight/WPF

    Monday, July 19, 2010 by Kiril Stanoev | Comments 4

    With the Q2 2010 release, RadTileView supports two major new features:

    • Animation optimization
    By setting the IsAnimationOptimized property to True, you can turn on the animation optimization. This optimization should be used only when necessary i.e. in scenarios where the visual tree of the TileViewItem is quite large and the animations do not run smooth.
    • Scrolling of the minimized items

     If the sum of the minimized heights/widths of all minimized TileViewItems exceeds the available space, RadTileView will show a ScrollBar allowing you to scroll the minimized items.

     

    This article will show you how to put a GridSplitter ...

  • RadBook now supports virtualization

    Friday, March 12, 2010 by Kiril Stanoev | Comments 1

    I am proud to announce that RadBook, along with RadGridView, RadTreeView, RadTreeListView, RadChart and RadScheduler, now supports virtualization. With previous versions, it would take up to 16 seconds to load 1000 pages, where now it takes just 2 seconds to load a set of 10,000,000 (10 million) items.

     

    The cause of the performance boost is the way RadBook handles the unnecessary(non-visible) elements. As you probably know, while turning a page, only four pages are visible at any given moment in time.

    Previous versions of RadBook would just collapse the unnecessary elements, ...

  • First Look at RadBook for Silverlight

    Thursday, November 19, 2009 by Kiril Stanoev | Comments 1

    I am glad to announce the addition of one more control to our Silverlight suite. The control is called RadBook and it is a page-flip type of control that allows browsing through a set of items as if flipping the pages of a book.

    RadBook inherits System.Windows.Controls.ItemsControl, which allows you to turn any type of content into a RadBook's page. The main features of RadBook are:

  1. 1
  2. 2
  3. »