Telerik blogs

Latest

  • Release

    RadFormDecorator Q2 2009 - more decoration options, faster rendering!

    RadFormDecorator might be one of the lesser-known controls in the RadControls for ASP.NET AJAX suite, yet it is a control that can eliminate much of the hassle and greatly reduce the time needed for completing the look and feel of a Web solution. What the control does is decorate elements that are usually rendered by the browser, such as buttons, checkboxes, radiobuttons, fieldsets, etc. It just so happens that this product can be used for free - as it is one of the goodies that Telerik provides for the whole ASP.NET community out there! As of Q2 2009, the RadFormDecorator will feature a new - faster and more flexible- rendering, as...
    May 27, 2021 3 min read
  • Productivity

    Editing Telerik OpenAccess ORM class-generating templates

    Telerik OpenAccess ORM uses a set of templates to generate classes from a database schema. These templates are nothing special but class definitions with a lot of placeholders that are being replaced with real values to produce buildable source code. Using templates gives us the ability to fully customize our reverse mapped classes. I am going to demonstrate how we can edit the templates so the generated classes will implement the INotifyPropertyChanging and INotifyPropertyChanged interfaces. All class-generating templates take place in the “C:\Program Files\Telerik\OpenAccess ORM\sdk\IDEIntegrations\templates\PCClassGeneration” directory. Navigate to it and open the “default.vm” file under the “\cs\templates\classgen\class” subfolder. This...
    May 27, 2021 2 min read
  • Productivity

    Model First or Schema First

    Telerik OpenAccess ORM let you work your preferred way: either you start with your object model and Telerik OpenAccess ORM generates/maintains your database schema for you, or just start with your existing schema and let Telerik OpenAccess ORM reverse map it to a new object model.   Telerik OpenAccess ORM provides support for both approaches for years and it will get even better by providing complex functionalities out of the box like Roundtrip Mapping (see below). Because we are getting requests for ‘Model First’ functionalities by our customers, and this is the way the upcoming version of Entity Framework names the Forward mapping...
    May 27, 2021 3 min read
  • Web

    RadioButton and CheckBox Menu Items with RadMenu for Silverlight

    RadMenu for Silverlight supports simple checkable items, but still does not support radio button items. This feature is scheduled for development and most probably will come with Q3 2009, but until then you have to code it by yourself. Fortunately, this is relatively easy with a proper ViewModel, that contains the radio-button logic: The CommandItem class contains the properties and the logic for a RadMenuItem. It implements INotifyPropertyChanged and its most important property is IsChecked: public bool IsChecked { get { return this.isChecked; } set ...
    May 27, 2021 4 min read
  • Web

    Scrollable Menu – Workaround with a Multi-Column Menu and RadControls for Silverlight

    RadMenu and RadContextMenu for Silverlight cannot automatically scroll their items if their height exceeds a certain height. We are planning to implement this feature in the near future, but at the moment there are two workarounds for the developers: override the RadMenu control template and add ScrollViewer controls around the ItemsPresenters, or customize the ItemsPanel of the RadMenuItem controls, so the sub-items are displayed in columns. The second option is much easier and looks good enough: The main idea is to replace the RadMenuItem ItemsPanel, that is a StackPanel by default, with a WrapPanel. To set the ItemsPanel property of all...
    May 27, 2021 2 min read
  • Productivity

    Mocking the Data Access Layer with Telerik OpenAccess ORM

    Unit testing the DAL has always resulted in a debate: whether to mock or not the Data Access Layer. Indeed, there are cases were the DAL cannot be legally tested without hitting the real production database (requires integration testing). The goal behind that is to assure us of the behavior of some database server specific features like primary key generation, handling schema alternations with pre-populated data, triggers, etc.. However for testing the Business Logic Layer , the validation logic or the presentation layer, it is fair to say that accessing the database is...
    May 27, 2021 3 min read
  • People

    MSDN Northeast RoadShow 2009

    Hi everyone! I attended the MSDN Northeast Roadshow in Waltham, MA yesterday and strongly recommend that anyone in the Augusta, Maine or Farmington, Connecticut areas check out the show when it is in your area within the next week.  Lots of great content ranging from why MVC is not that scary to reasons why you should be looking out for the Silverlight 3 release.  For those of you who are unfamiliar with the event, it's a great opportunity to find out what is new and exciting with the Microsoft development world, dodge colorful question reward bricks (the sound of impact on an unsuspecting crowd member is something...
    May 27, 2021 2 min read
  • Release

    Try the new Beta now!

    We have released a Beta of RadControls for ASP.NET AJAX Q2 2009! We are excited to offer 4 new controls, improvements to all other controls in the suite as well as a new installer. The new controls have been often requested by the community and they will come handy for a lot of people: RadListBox is a Telerik-quality full-scale listbox control with reordering, transfer, drag-and-drop, multiple selection, etc. RadCaptcha is a UI control that provides protection against automated form submission. RadXmlHttpPanel serves as a container for rapid content loading. You can update diverse content (rich content, user controls or just ...
    May 27, 2021 2 min read
  • Productivity

    Using Stored Procedures for CRUD

    Telerik OpenAccess ORM generates dynamic SQL to perform CRUD operations. If for some reason you are not comfortable using dynamically generated SQL or your company policies allow data manipulation only via stored procedures, fear not. Telerik OpenAccess ORM supports CRUD operations via stored procedures too – currently only for MS Sql Server, but soon for the other backends also.  Stored procedure usage in Telerik OpenAccess ORM can be classified into 2 categories – Mapping existing stored procedures and instructing Telerik OpenAccess ORM to use them instead of generating dynamic SQL Letting Telerik OpenAccess ORM generate and use the required stored procedures based...
    May 27, 2021 4 min read
  • Desktop WPF

    WPF / Silverlight: RadChart and BindableLinq

    RadChart data binding provides a simple and consistent way for applications to present and interact with data. In many cases the data that you work with is a collection of objects and you need the UI to update automatically whenever the datasource gets updated. WPF and Silverlight provide a built-in implementation of a data collection that implements the INotifyCollectionChanged interface and achieves the desired effect. However, when you try to blend the ObservableCollection<T> implementation with some LINQ queries, the situation gets a bit more complicated and most probably the out-of-the-box result will not match your expectations. Let us take the...
    May 27, 2021 2 min read