Telerik blogs

Latest

  • Web

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

    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 have to write...
    August 28, 2009
  • Productivity Testing

    WebAii Testing Framework: From HTML to XAML and Back -- RadHtmlPlaceholder

      Along with the Service Pack of RadControls for Silverlight Q2 we released an update of the free test automation solution, the WebAii Testing Framework. There are additions, fixes and improvements in all the components including the core WebAii, WebAii RadControls for Silverlight and ASP.NET AJAX. With this post I’d like to bring your attention to the latest addition to our Silverlight controls wrappers – the RadHtmlPlaceholder one. As you probably know, the control itself is a pretty useful component part of the RadControls for Silverlight suite.
    August 27, 2009
  • Productivity

    Visual Studio 2010: Code snippets for “RadControls for ASP.NET AJAX”

    To enable support for Visual Studio 2010 Beta 1 you will need to select “Complete” when installing RadControls for ASP.NET AJAX Q2 2009 SP1     One cool new feature of Visual Studio 2010 is that snippets now work in the HTML editor. Code snippets for C# and VB have been supported in previous versions of Visual Studio, however the new HTML Snippets feature gives you the same productivity boost when writing markup or ASP.NET server control declarations in the HTML Editor.   The following procedure describe how to use RadControls for ASP.NET AJAX code snippets:   In Visual Studio 2010, on the File menu, point to New...
    August 27, 2009
  • People

    Vote for Telerik products

    Telerik made it to the final of this year’s Community Choice Awards organized by Windows IT Pro and SQL Server Magazine. The awards will recognize the best products and services in the industry by a community vote. Participants have the chance to win a bunch of cool prizes provided by Windows IT Pro magazine like a $250 gift card or one of 30 Windows IT Pro T-shirts. We have been nominated in the following 5 categories: Best Business Intelligence & Reporting Product Best Development Tool Best SharePoint Product Best Free...
  • Desktop WinForms

    Multi-Item Drag and Drop with the RadListBox for WinForms

    Earlier this week, I ran across a forum post asking about how one would go about creating multiple RadListBoxes that supported multi-item drag and drop. This sounded like a fun challenge, so I decided to take it on. Referencing an earlier forum post that described single-item drag and drop, I came up with the following solution. Calling DoDragDrop() immediately changes the mouse pointer and readies the RadListBox for the drag-and-drop operation. Originally, I had tried calling this function in the MouseDown event, but this lead to unpredictable clunky behavior due to the fact that DoDragDrop() was getting called before I had the chance to ...
    August 27, 2009
  • Web

    Self-reference hierarchy with Telerik TreeView for Silverlight

    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; set; } public int ParentID {...
    August 27, 2009
  • Productivity

    Telerik OpenAccess WCF Wizard: How-to Video #2- Astoria

    digg_url = "http://www.stephenforte.net/PermaLink,guid,fa997be0-5dfb-4a79-b7bc-6f2f782b9493.aspx";digg_title = "Telerik OpenAccess WCF Wizard: How-to Video #2- Astoria";digg_bgcolor = "#FFFFFF";digg_skin = "normal";digg_url = undefined;digg_title = undefined;digg_bgcolor = undefined;digg_skin = undefined; The following video shows how to use the Telerik OpenAccess WCF Wizard with ADO.NET Data Services. The video is done by .NET Ninja in training Peter Bahaa and uses more or less the same code I showed yesterday on my blog. Enjoy!   Telerik OpenAccess WCF Wizard Part II- Astoria from Stephen Forte on Vimeo.
    August 26, 2009
  • Productivity

    Using ADO.NET Data Services with Telerik OpenAccess and the WCF Wizard

    digg_url = "http://www.stephenforte.net/PermaLink,guid,9a2c41de-b873-4acb-a680-78a2f130a03d.aspx";digg_title = "Using ADO.NET Data Services with Telerik OpenAccess and the WCF Wizard";digg_bgcolor = "#FFFFFF";digg_skin = "normal";digg_url = undefined;digg_title = undefined;digg_bgcolor = undefined;digg_skin = undefined; I have been a big fan of using the RESTful ADO.NET Data Services (aka Astoria). If you want to use Astoria out of the box without any modifications you really have to use the Entity Framework. But as long as you are using a data access library that supports IEnumerable and IQueryable (and IUpdateable to be useful for CRUD) you can use Astoria with just a little bit of extra work.  Telerik OpenAccess supports LINQ and IUpdateable and can be used in Astoria as shown here. In a nutshell you have to first create your data access layer, then a web site to host your ADO .NET Data Service and...
    August 25, 2009
  • Web

    Mark working hours and days in different colors with RadScheduler for Silverlight

    We received a couple of questions on how some of the days and hours in the different views of RadScheduler can be customized. The answer of this question is in the attached application illustrating how working hours and days can be  marked in orange.  The solution includes 3 easy steps : Create a custom theme using the default RadScheduler' theme. Create a ValueConverter returning the right color depending on the hour/day. Find the style applied to every hour(timeslot) and apply the converter to the Background property. To create a custom theme you can follow the steps...
  • Productivity

    Telerik OpenAccess WCF Wizard: How-to Video #1

    digg_url = "http://www.stephenforte.net/PermaLink,guid,1d3d07a0-ce73-4eb3-8fd4-1ec259e21a60.aspx";digg_title = "Telerik OpenAccess WCF Wizard: How-to Video #1";digg_bgcolor = "#FFFFFF";digg_skin = "normal";digg_url = undefined;digg_title = undefined;digg_bgcolor = undefined;digg_skin = undefined; Last week I showed how to use the Telerik OpenAccess WCF Wizard on this blog. The wizard creates some of the boring WCF code for you automatically. You can create endpoints for WCF, Astoria, REST collection and ATOM Pub services. Our first demo used WCF, later we will show you the other services. This is what we did: Created a data access layer automatically using OpenAccess Created a WCF Service automatically using the wizard Created a Silverlight 3.0 application that used WCF to databind the Customers table to a datagrid, enabling editing automatically Here is a video by Peter Bahaa (aka Pedro), .NET ninja in training, using the wizard with the...
    August 24, 2009