Telerik blogs
  • 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...
    June 22, 2009
  • 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 ...
    June 19, 2009
  • 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...
    June 19, 2009
  • 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...
    June 18, 2009
  • 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...
    June 18, 2009
  • 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...
    June 22, 2009
  • 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 ...
    June 19, 2009
  • 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...
    June 19, 2009
  • 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...
    June 18, 2009
  • 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...
    June 18, 2009