Telerik blogs
  • 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
  • Release

    Custom RadMap Provider for Q1 2011

    Since Q1 2011 and the newest release of the RadMap several changes were made to the control. Presently it is possible to specify several tile providers that will be displayed one over the other through the RadMap.Providers property. If your Map sources have tile size different from the default one (256x256) then all these sources must use the same tile size. For example if you want to have a satellite source with tile size 300x300 and a road source, the last one must use this tile size as well. If your map source uses a tile size different from the...
  • Release

    Exporting Telerik Reports to PowerPoint Presentation (Q1 2011)

    One of the greatest new features in Telerik Reporting Q1 2011 is the PowerPoint Presentation Rendering Extension, which produces a PowerPoint Presentation file from any Telerik report. The new rendering extension is part of the newly introduced support for the Office Open XML standard which meets “the new workplace challenges that include easily moving data between disparate applications, and allowing users to glean business insight from that data." (Source: MSDN). Supporting the Office Open XML standard also means that Telerik Reporting can export its reports not only to Microsoft Office PowerPoint, but to Word, and Excel 2007/2010. The native Office Open XML support means that any document suite,...
    March 25, 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