Telerik blogs

Latest

  • Release

    RadDock for Winforms Q2 2009 Beta has landed!

    UPDATE: A hands-on demo added at the end of this post! No installation necessary.   We are happy to announce the release of the long waited Beta version of our new RadDock control. We have been overwhelmed with work for the last few weeks, but we are more than thrilled by the result. We managed to add an abundance of new features compared to the old DockingManger control, in addition to covering most of the functionality that existed in the previous DockingManager.   For starters, RadDock has much simpler object model and better API. The object structure mirrors the control tree that...
    May 27, 2021 3 min read
  • Release

    Codeless Data binding in RadScheduler for WinForms Q2 2009

    I am happy to share that RadScheduler for WinForms gets some cool new improvements for Q2 2009. Our Roadmap does not reveal much, but here is a quick preview of what we have been working on.   When we started developing the Telerik WinForms scheduler we knew that we could make the data binding process much simpler than the ongoing implementation. Not that this is hard to do currently, no. We simply had some ideas how to make it better, and even codeless, so that you do not have to spend much time on this task. In the new version you will be...
    May 27, 2021 2 min read
  • Desktop WPF

    RadChart for WPF/SL Automatic Data Binding to Nested Collections

    Seamless operation with diverse data sources is paramount for any data visualization solution. RadChart already supports automatic data binding to IEnumerable sources as seen in this example: http://demos.telerik.com/silverlight/#Chart/DataBinding. With the growing of Silverlight data sources and support for various data services, however, a new scenario is becoming more common: data binding to a collection of collections or nested collections. I am glad to announce that a new feature is coming in the Q2 2009 release which will make this automatic. Consider the following code snippet: private void FillWithData() {     var list1 = new List<double>() { 1, 3, 5, 7, 9 }; //Odd Numbers     var list2 = new List<double>() { 2, 4, 6, 8, 10 }; //Even Numbers    ...
    May 27, 2021 2 min read
  • Web

    Silverlight/WPF RadChart axis improvements.

    Along with the numerous updates that are coming up with the Q2.2009 version of RadChart for WPF/SL, we are going to introduce significant improvements of the way our horizontal axis handles user data. Actually, a bunch of new features will make the horizontal axis much more intelligent and easy to use. First of all, the horizontal axis will be able to properly handle "X" value data! As soon as a DataPoint with meaningful "X" value is received, the horizontal axis will enter "strict" mode and will place it appropriately.      To make this possible we also implemented the following supporting features: Automatic range calculation...
    May 27, 2021 2 min read
  • Web ASP.NET AJAX

    Common RadWindow issues and their solution

    The RadWindow control is part of the Telerik’s RadControls for ASP.NET AJAX suite and is intended to replace the standard browser’s popup (window.open()). Since the control is based on an IFRAME, it behaves just like one – basically, whatever can be done with an IFRAME, can be achieved with RadWindow as well. This fact is useful when you investigate a reason for some problem related to the RadWindow control. Just replace the RadWindow with a standard IFRAME or browser’s popup and see how your application will behave in this case. If the problem still exists, then it is not related to the...
    May 27, 2021 4 min read
  • Web

    Data-binding menu, context menu and toolbar, a.k.a. a simple text editor for Silverlight

    This demo extends my previous sample, that demonstrated how to add a right click context menu on a TextBox. Here I will show how to create context sensitive main menu and toolbar, in addition to the context menu. The demo will also demonstrate some advanced enhancements that we added to the Silverlight 2 Framework, such as merged dictionaries and container bindings. The application enables/disables the Cut and Copy commands when there is no selection and also disables the Paste command when there is no clipboard content. As in the previous blog post, the clipboard methods work only in IE. Here is how...
    May 27, 2021 6 min read
  • Productivity

    Handling concurrent database operations with Telerik OpenAccess ORM

    What usually is of great importance to developers that use ORM tools, are issues related to concurrent updates or deletes that can potentially cause a valuable loss of data, and how the ORM framework handles the cases. Because of the state-less nature of HTTP the object-scope is re-initialized on every postback. That is an operation on its own, future blog-posts will cover some of the best practices approaches to object scope life-cycle management. The problem with stateless scenarios is that all change-tracking that the object-scope does for us in a desktop scenario is lost on every postback so there is a...
    May 27, 2021 3 min read
  • Web

    Reusing and customizing a single ContextMenu on a TreeView with RadControls for Silverlight

    This is part two of my Attaching a ContextMenu on TreeView blog post. I will show another approach for adding context menu on a treeview, that uses a single menu that is customized for each treeview item. One context menu per treeview should provide much better performance if the treeview is bound to a large data set, since there are much less visual elements that have to be created. I am also using an updated view model, where each item contains a reference to its parent. This will help me to rely entirely on the model for my application logic, which greatly...
    May 27, 2021 4 min read
  • Desktop WPF

    Enhancing the Localization Support of RadControls for Silverlight and WPF

    With the Q1 2009 SP2 release of RadControls for Silverlight we introduced an enhancement of the LocalizationManager class. Two new properties were added to enrich the localization support in the suite - DefaultCulture and DefaultResourceManager. With the new properties you no longer have to always create an instance of the LocalizationManager. Here is a brief description of the two properties: DefaultCulture A static property of type System.Globalization.CultureInfo. Use this one to change localized values without changing the UI culture of the current thread. DefaultResourceManager A static property of type System.Resources.ResourceManager. Use this one to change localized values using a new resource manager, i.e. a new resource file. Example: The attached...
    May 27, 2021 1 min read
  • Desktop WPF

    How to apply different templates to different appointments of Telerik Scheduler for WPF/Silverlight.

    In the upcoming Q2 release RadScheduler  will include a new property called AppointmentTemplateSelector. This property will be included in both  Silverlight and WPF versions of the control. Using it,  you will be able to easily apply different DataTemplate  to the appointments by any custom condition. All you need to do is to create a custom class inheriting from the  DataTemplateSelector class and override the SelectTemplate method.   For...
    May 27, 2021 1 min read