Telerik blogs
  • Desktop WPF

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

    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> .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt { background-color: #f4f4f4; width: 100%; margin: 0em; } .csharpcode .lnum { color: #606060; }   This way you could easily access the RadTreeView instance in the code-behind, however I would recommend using a ViewModel and bindings instead.   The DropDownButton Content property is bound to the SelectedItem property of...
  • Web

    How to activate a pane in the Telerik Docking control for WPF and Silverlight?

    One very requested scenario when the developers are using a Docking control is to activate a pane on certain user action. For example we may have a pane that contains some kind of output like the one in Visual Studio and when a message is added, the pane should pop-up wherever it is. Another example is the 'Find' dialog of the Visual Studio when the user preses Ctrl+F. This feature could be easily archived with the Telerik Docking control for Silverlight and WPF. In this blog post I will guide you through the implementation of a simple method that accomplishes this task and...
    March 04, 2010
  • Desktop WPF

    Using Compass indicators properties for Telerik's Docking Control for Silverlight and WPF

    Sometimes when using a Docking control and implementing complex UI with it we need to add some custom rules about allowing some panes to be docked in some parts of the application and to disallow them to dock to other parts. As this behavior is quite complex itself, we’ve decided to enable some scenarios to be available in XAML in a declarative way (the more static scenarios) and some scenarios to be available only through the code-behind.   In this post I will guide you through some simple steps that will show you how you could use both approaches. First of all...
    December 29, 2009
  • Web

    How to add a scrollbar to Telerik RadMenu for Silverlight

    As we received a lot of questions on how to add a ScrollViewer to the RadMenu control for Silverlight, in this blog post I am going to explain how you can achieve this. Adding a ScrollViewer to RadMenu for Silverlight can be easily accomplished using Expression Blend. Step 1. Create a new Silverlight 3 Application. Step 2. Add references to Telerik.Windows.Controls.dll and Telerik.Windows.Controls.Navigation.dll in your project. Step 3. Drag RadMenu and RadMenuItem controls from the Toolbox and drop them on the design surface.   Step 4. Right-click on one of the RadMenuItems and select EditStyle or select it and from the menu by choosing Object -> Edit Style ->...
    December 10, 2009
  • Desktop WPF

    Standard resources in the edit dialog in Telerik Scheduler for Silverlight/WPF

    As many of you noticed Telerik Scheduler was released with a completely new look of the edit appointment dialog. Some of the things inside the dialog are just redesigned, however some of them are completely new like the categories,time markers and the importance buttons. Today I will give you more information about them:   Categories: There are some built-in categories in RadScheduler and in  its edit dialog. A category can be assigned to an appointment by choosing one from the dialog on through code behind like this: Then the category will appear in the appointment: and in the edit dialog:   You can remove a assigned category by...
    November 27, 2009