Telerik blogs

Latest

  • Web

    Attaching a ContextMenu on a TreeView with RadControls for Silverlight

    Telerik RadControls for Silverlight provide a very powerful ContextMenu control, that supports right click, modifier keys and that can be easily attached to any visual element. In this article I will show how to attach RadContextMenu to a data-bound RadTreeView and perform actions on the clicked treeview items, depending on the selection in the context menu. For simplicity, here I will use a treeview, bound to a static collection, but it can be easily extended to load its items from a web service: <UserControl x:Class="ContextMenuInTreeView.Page" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:ContextMenuInTreeView" xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"> <UserControl.Resources> <local:DataViewModel x:Key="ViewModel" /> <telerik:HierarchicalDataTemplate x:Key="TreeViewItemTemplate" ItemsSource="{Binding Children}"> <TextBlock Text="{Binding Text}"> <telerikNavigation:RadContextMenu.ContextMenu> <telerikNavigation:RadContextMenu> <telerikNavigation:RadMenuItem Header="New Child" /> <telerikNavigation:RadMenuItem Header="New Sibling" /> <telerikNavigation:RadMenuItem Header="Delete" /> </telerikNavigation:RadContextMenu> </telerikNavigation:RadContextMenu.ContextMenu> </TextBlock> </telerik:HierarchicalDataTemplate> </UserControl.Resources> <StackPanel Background="White" DataContext="{StaticResource...
    April 27, 2009
  • People

    Scheduling multiple builds with a single click (using MSBuild and Team Build 2008)

    CustomBuildTask.zip If you are working on a large project it is very probable that the project is composed of several parts/modules which are build separately. What are your options if you want to be able to rebuild the whole thing easily? If you are a Quake tournament winner equipped with Razer Copperhead mouse you could probably schedule 10 builds (in the right order) in a matter of seconds but what about your colleagues that are not so gifted? Well, there is the TfsBuild command line tool but in case you are using the 2008 version and you would like to have the...
    April 27, 2009
  • Productivity Reporting

    Connecting the Dots: ADO.NET Data Services and Telerik Reporting

    ADO.NET Data Services (formerly Astoria) is one of the new technologies released as part of v3.5 SP1 of the .NET Framework. If you haven’t tried this new addition to the framework, I highly suggest you give it a spin. It’s very cool and allows you to quickly and easily set up RESTful WCF services with which your application can interact with the database. If you’re interested in learning more, MSDN has several great resources to help you get started. One of the cool things about Telerik is that the developers are always mindful of building products that can be easily integrated with existing and future...
    April 24, 2009
  • People

    Telerik sponsors the first ever world open, Silverlight game development contest

    Mashooo.com announced the first ever, world open, Silverlight game development contest. It is an open "no holds barred" style competition, meaning that people from around the world are free to participate and there are no theme limitations. You can just bring your talent and zest for Silverlight game development and show the world what you can do. The contest will begin on March 18, 2009 and last for around 3 months. As a contributor to this contest Telerik provides several prizes including various licensed packages - Telerik Premium Collection, RadControls for Silverlight and WPF, and RadControls for Silverlight. For more details you can refer...
  • Release

    Two New RadTips Episodes: RadGrid, Entity Framework, and More!

    I’m happy to announce two new episode of RadTips, a series of screencasts offering tips and tricks for using Telerik's RadControls. If you've missed previous episodes, be sure to check them out on Telerik TV. Each is only a few minutes long and covers a specific feature of the RadControls. Adding a HeaderContextMenu to the RadGrid for ASP.NET AJAX In this episode I show ASP.NET AJAX developers how to use the HeaderContextMenu to perform column-specific operations in the RadGrid. Click here to watch on Telerik TV The video is available for download below. [Video: MP4] Using the Entity Framework with the RadControls for ASP.NET AJAX In this...
    April 24, 2009
  • People

    Make plans to attend CodeStock

    This June, I will be at the CodeStock conference in Knoxville, TN.  If you live in the area, then CodeStock offers you a great opportunity to learn about a variety of technologies.  I am honored to have been invited to sit on a panel discussion about running community conferences and user groups.  The conference will take place June 26-27 and only costs $25 if you get your tickets before June 1.  CodeStock is doing something very unique this year in allowing anyone who registers before May 15 to vote on the sessions they most want to see.  So you can actually...
    April 23, 2009
  • Web

    Lightweight DataTable for your Silverlight applications

      UPDATE: Please visit this post for more info about dynamic objects binding!   Since there is no DataTable in Silverlight I’ve created small class that can be used to generate columns and rows in runtime in similar to the real DataTable way: DataTable table = new DataTable();table.Columns.Add(new DataColumn() { ColumnName = "ID", DataType = typeof(int) });table.Columns.Add(new DataColumn() { ColumnName = "Name", DataType = typeof(string) });table.Columns.Add(new DataColumn() { ColumnName = "UnitPrice", DataType = typeof(decimal) });table.Columns.Add(new DataColumn() { ColumnName = "Date", DataType = typeof(DateTime) });table.Columns.Add(new DataColumn() { ColumnName = "Discontinued", DataType = typeof(bool) });for(var i = 0; i < 1000; i++){ DataRow row = new DataRow(); row["ID"]...
  • Release

    The short story of ScrollableButtonList

    Boss: “George, I want you to use a good looking ScrollableButtonList here. And make that for yesterday – we are getting behind schedule already!” George: “What, for yesterday? It will take me at least a week! Come on, boss, you know how coding is!” Boss: “Do it, or you will be looking for a new job!” George (walking towards his office): “Oh maan, what am I gonna do?” George (thinking again): “Of course! I will use the Telerik WinForms Framework! I bet the ScrollableButtonList will be ready in minutes… ” This may sound bizarre, but it’s not! With the wide range...
    April 23, 2009
  • Web

    Web 2.0 font sizes with RadInput

    If you’ve spent much time visiting “web 2.0” sites, you know that large font sizes are totally “in vogue” for data entry forms. Not only are they easy for all audiences to read, but they also imply a certain level of simplicity on a website. In fact, there are even some UX experts suggesting larger font sizes are better now that high-resolution monitors are the norm and not the exception. If you’ve got a “beautifully designed” web 2.0-style site, though, and you’re working with RadInput, you know that the default skins “force” their own font size. What do you do if you...
    April 23, 2009
  • Desktop WinForms

    Choosing between RadControls for WinForms and the standard Windows Forms controls

    Ever wondered how RadControls for WinForms differ from the standard Windows forms controls? Or needed a particular feature that is supported in the standard controls, but were unsure whether Telerik has it? Regardless of whether you are just starting with RadControls for WinForms, or have a large project in the works, we have a reference white paper for you to look into. We spent some time on creating a detailed comparison between the RadControls features and the capabilities of the standard Windows Forms tools, available in the Visual Studio toolbox, so that you do not have to! This means that choosing between...