Telerik blogs

Latest

  • Productivity

    Telerik OpenAccess ORM and Ado.Net Data Services Example Refreshed

    This is a refresh of an older blog that demonstrates Telerik OpenAccess ORM working together with Ado.net Data Services and SilverLight. This time we updated the client-side a bit, using our RadControls for SilverLight. Since some of the steps are basically the same as in the previous example don’t be surprised if you find something familiar.   We are continuously investing into better LINQ support for our product, and this is just we need to plug into the Ado.net Data Services framework.   Now let’s get to the application! Firstly we have to build our data model. To do so add a library project to the...
    June 25, 2009
  • Productivity

    Using Telerik OpenAccess ORM in N-Tier applications

    Hello, by means of introduction, my name is Alexander Filipov and I am working as a developer for the Telerik OpenAccess team. In my first post I would like to share some thoughts about using Telerik OpenAccess ORM in advanced n-tier web applications. Undoubtedly, the main goal in such architectures is to lose-couple the tiers from each other, so the code is modular and easier to maintain. Here comes the question how Telerik OpenAccess ORM fits into this scenario and which are the layers that it should be used in. The optimal approach is to have not...
    June 24, 2009
  • 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...
    June 24, 2009
  • 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...
    June 23, 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
  • 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 ...
    June 17, 2009