Telerik blogs

Latest

  • Desktop WPF

    Revealing hidden features of Multilevel Lists in RadRichTextBox for Silverlight & WPF

    If you have taken a look at the blog post about the new features introduced in the latest Q1 2011 and have taken a liking to the multilevel lists, you should definitely read this one. It will give you some insight on the usage of the options that come out of box and some information on how you can extend them to suit the purposes of your project. In case you are in the habit of starting reading from the end, you can preview the Silverlight demo to see the lists in action. You should note that there are buttons both in...
    April 14, 2011
  • Desktop WinForms

    Make Your Telerik WinForms-enabled Applications Start Instantly

    RadControls for WinForms is a very well structured package of controls, with an excellent balance between performance and features. Still, firing up an application built with Telerik Windows Forms may take a few seconds – time that end-users prefer to get rid of, if possible. So, here is a nice trick which makes your RadControls-enabled application run instantly on the client. This solution is common for large applications such as the Open Office suite. The idea here is to load some application resources (in our case - the  whole application) when the Windows starts. When the end-user starts the application,...
  • Desktop WPF

    How To Drag A File From Desktop And Drop It In RadTreeView Placed In WPF Application

      Sometimes we need to extend the RadTreeView’s Drag’and’Drop abilities in order to accept external data from other applications or Windows. In this post I will show you how to successfully drag and drop images from  windows desktop / windows explorer to a RadTreeView located in a running WPF Application. Imagine we want to make a tree that shows pictures and names of our favourite football teams and our favourite players in these teams. How can we achieve this ? We can first create some ViewModels: PlayerViewModel, TeamViewModel, LeagueViewModel that all inherit from BaseViewModel. The BaseViewModel will implement the INotifyPropertyChanged interface and will expose Name(string) and ImgSource(Uri) properties. Then we will create...
    March 29, 2011
  • Desktop WPF

    Editing the RadScheduleView's TimeRulerItemTemplateSelector

    RadControls for WPF, 2011.Q1 We will start with the project from the previous post: DOWNLOAD: RadScheduleView_GroupHeaderTemplates.zip And will produce the following project that has its timeruler items modified: DOWNLOAD: RadScheduleView_TimeRulerItemTemplates.zip Using the GroupHeaderContentTemplateSelector you can bind to the resource data. In the time ruler this is not the case. The time ruler items present date information and at this time they can’t be modified through items source property. We will create an inline template selector and discuss some of the TimeRulerItem DataTemplates. Converting the TimeRulerItemTemplateSelector to Local Value Select the RadScheduleView, go to the “Styling” section in the “Properties” tab and click the rectangle near the “TimeRulerItemTemplateSelector” property. Then...
    March 24, 2011
  • Desktop WPF

    Editing the GroupHeaderContentTemplateSelector of RadScheduleView

    RadControls for WPF, 2011.Q1 We will start with the project from the previous post: DOWNLOAD: RadScheduleView_StartUp.zip And will create a project that has one of the GroupHeader templates modified: DOWNLOAD: RadScheduleView_GroupHeaderTemplates.zip Converting the GroupHeaderContentTemplateSelector to Resource Select the RadScheduleView on the Design Surface. Go to the “Styling” property group. Click the small rectangle near the “GroupHeaderContentTemplateSelector” and use the “Convert to New Resource…” option: Name the new resource “GroupHeaderTemplateSelector”: Converting a DataTemplate from the GroupHeaderContentTemplateSelector to Resource Click again the “GroupHeaderTemplateSelector” and “Edit Resource”:   From the dialog that will open: Convert the HorizontalTemplate and the VerticalTemplate to new resources named "HorizontalHeaderTemplate" and...
    March 24, 2011