• Programming Telerik ScheduleView for WPF/Silverlight (part 1)

    Tuesday, October 26, 2010 by Valeri Hristov | Comments 4

    With this blog post I want to cover the very basics of our brand new RadScheduleView control. It is currently available only for WPF, but soon we will provide a Silverlight version. Please, check my FAQ about RadScheduleView blog post for more information:

    http://blogs.telerik.com/valerihristov/posts/10-10-25/telerik_scheduleview_for_silverlight_wpf_questions_and_answers.aspx

     

    To add RadScheduleView to a new or existing application you need to first add references to the following assemblies

    Telerik.Windows.Controls

    Telerik.Windows.Data

    Telerik.Windows.Controls.Input

    Telerik.Windows.Controls.Navigation

    Telerik.Windows.Controls.ScheduleView

     

    If you like to drag controls from the Visual Studio Toolbox, add RadScheduleView to the Toolbox following the instructions below (in the official release it will be automatically added when ...

  • Telerik ScheduleView for Silverlight/WPF questions and answers.

    Monday, October 25, 2010 by Valeri Hristov | Comments 13

    I would like to answer a few questions that you might have about our brand new RadScheduleView control.

     

    Q) When is the Silverlight version coming?



    A) We will do our best to provide the Silverlight version by the end of the year.

    UPDATE: We already published a pre-beta version that can be downloaded in this forum. The Beta is expected in Mid February, the RTM version will be available with Q1 2011 in Mid March.

    Q) Why did you create a new control instead of changing the existing RadScheduler?



    A) We wanted to address all known issues the ...

  • TreeView in ComboBox with RadControls for Silverlight or WPF, final take

    Wednesday, May 12, 2010 by Valeri Hristov | Comments 5

    It seems that there are many developers that want to use this combo, as my previous blog posts are quite popular. The problem with the suggested solution is that you need to customize the control template of RadComboBox. There is a much easier way to put a RadTreeView in a Popup – by using a RadDropDownButton:

    <telerik:RadDropDownButton  HorizontalContentAlignment="Left"  DropDownWidth="200"  IsOpen="{Binding SelectedItem, Converter={StaticResource ObjectToFalseConverter}, ElementName=TreeView, Mode=TwoWay}"  Content="{Binding SelectedItem.Text, FallbackValue='Please, select an item.', ElementName=TreeView}">  <telerik:RadDropDownButton.DropDownContent>  <telerik:RadTreeView  x:Name="TreeView"  ItemsSource="{StaticResource Items}"  ItemTemplate="{StaticResource ItemTemplate}"  />  </telerik:RadDropDownButton.DropDownContent>  </telerik:RadDropDownButton>
  • Data-binding Telerik CoverFlow for Silverlight + some Routed Commands goodness

    Thursday, November 05, 2009 by Valeri Hristov | Comments 1

    With our still hot Q3 2009 release we introduced a brand new RadCoverFlow control, that was rewritten from scratch in order to be able to exploit some new features in Silverlight 3 that improved both its performance and appearance. We are now using matrix projections to transform the items’ content and pixel shader effects to render the reflection. This allows us to show and properly transform any element in RadCoverFlow, including UI Elements, controls and video, as well as instantly synchronize the reflection.

    This major change in the control caused major changes in its API and usage patterns. We provide ...

  • Virtualized Telerik ComboBox for Silverlight

    Wednesday, October 28, 2009 by Valeri Hristov | Comments 5

    In some scenarios it is required to load thousands of items in a ComboBox. Since by default the control creates RadComboBoxItem containers for each data item, it might take some time to open the drop-down. To resolve the problem you only need to change the RadComboBox ItemsPanel with VirtualizingStackPanel:

    <telerikInput:RadComboBox>  <telerikInput:RadComboBox.ItemsPanel>  <ItemsPanelTemplate>  <VirtualizingStackPanel  />  </ItemsPanelTemplate>  </telerikInput:RadComboBox.ItemsPanel>  </telerikInput:RadComboBox>
  • Drop-Down Menu Button with Telerik ContextMenu for Silverlight

    Monday, September 07, 2009 by Valeri Hristov | Comments 3

    Sometimes, when a button is clicked we want to display a drop-down menu with options. This is handy interface, usually present in toolbars, but sometimes - as standalone buttons, like the Save As button in the the VS2008 Save As dialog. Sometimes the drop-down buttons consist of two parts – action and menu, and are called split buttons. In this post I will demonstrate how to achieve the drop-down menu button part. If you need a split button, just add another button and keep track of what was the last clicked menu item. Note, that with Q3 2009 we will ...

  • TreeView in ComboBox, take 3 (Silverlight 3, WPF and RadControls)

    Thursday, August 27, 2009 by Valeri Hristov | Comments 14

    In my previous article on the same topic I described how to replace the ItemsPresenter of RadComboBox with a RadTreeView. It was as simple as updating the control template. Unfortunately the controls’ selection synchronization relied on a bug in RadComboBox that we recently fixed – the control was able to have a value in its SelectedItem property, that was not present in its Items collection. Now, in order to workaround this new problem, we have to either inherit RadComboBox, or create an attached behavior that will allow us to get the SelectedItem of the inner RadTreeView. The code you ...

  • Self-reference hierarchy with Telerik TreeView for Silverlight

    Wednesday, August 26, 2009 by Valeri Hristov | Comments 14

    Often we need to display in a TreeView flat, self-referencing data, loaded from a database, that has properties ID and ParentID (or similar) that define the hierarchy. The Telerik TreeView for ASP.NET can automatically bind itself to such data, but our Silverlight TreeView cannot do this out of the box. Fortunately, this “limitation” can be easily avoided with a simple value converter. There is a little trick, however – each data item needs a reference to its parent collection.

    Consider the following very simple data object:

    public  class DataItem : INotifyPropertyChanged
    {
        private  string text;  
     
      public  int ID { get; ...
  • RadioButton and CheckBox Menu Items with RadMenu for Silverlight

    Friday, June 19, 2009 by Valeri Hristov | Comments 0

    RadMenu for Silverlight supports simple checkable items, but still does not support radio button items. This feature is scheduled for development and most probably will come with Q3 2009, but until then you have to code it by yourself. Fortunately, this is relatively easy with a proper ViewModel, that contains the radio-button logic:

    checkablemenuitems

    The CommandItem class contains the properties and the logic for a RadMenuItem. It implements INotifyPropertyChanged and its most important property is IsChecked:

    public  bool IsChecked
    {
        get
        {
             return  this.isChecked;
        }
        set
        {
             if (this.isChecked !=  value)
            {
                 this.isChecked =  value;
                 this...
  • Scrollable Menu – Workaround with a Multi-Column Menu and RadControls for Silverlight

    Thursday, June 18, 2009 by Valeri Hristov | Comments 4

    RadMenu and RadContextMenu for Silverlight cannot automatically scroll their items if their height exceeds a certain height. We are planning to implement this feature in the near future, but at the moment there are two workarounds for the developers: override the RadMenu control template and add ScrollViewer controls around the ItemsPresenters, or customize the ItemsPanel of the RadMenuItem controls, so the sub-items are displayed in columns. The second option is much easier and looks good enough:

    MultiColumnMenu

    The main idea is to replace the RadMenuItem ItemsPanel, that is a StackPanel by default, with a WrapPanel. To set the ItemsPanel property of ...

  1. 1
  2. 2
  3. 3
  4. »