Telerik blogs

Latest

  • Productivity

    JustMock. The tale continues... (Part 3)

    Last time we saw how we can inject code at the beginning of generic methods. Today I will show you how to inject code in properties. I will cover the syntax for static classes as well. So, let's start with a demo program that I will explain line-by-line. using System; using Telerik.CodeWeaver.Hook;   namespace ConsoleApplication4 {     public sealed class TargetClass1     {         public TargetClass1(string text)         {             Text = InitText = text;         }           public string InitText { get; private set;...
    May 27, 2021 4 min read
  • Release

    The new Telerik OpenAccess Schema Update wizard

    One of the new features of Telerik OpenAccess ORM Visual designer is the forward mapping wizard that can be used to update the database schema from the model. Yes it is true! With just few clicks you are able to generate and execute either a schema definition or schema update script that will alter you database schema. First you will need to open our Schema Update Wizard. You can do this by either right clicking in the schema explorer or in the model explorer: the command is named Update Database from Model… This will open the following page: On the first page you...
    May 27, 2021 3 min read
  • Desktop WinForms

    New goodies in RadGridView for WinForms: Drag and drop with RadGridViewDragDropService

    One of the new goodies that came with RadGridView Q2 2010 is the brand new drag and drop API, which offers a very flexible way to create custom drag and drop scenarios with ease. Each instance of RadGridView is associated with RadGridViewDragDropService that handles user drag and drop operations. It gives you out-of-the-box reordering of columns and movement of items between the group panel and the columns header. The service is also responsible for rows reordering in unbound mode when grouping and sorting features are not applied. In many cases, developers need to implement complex custom scenarios that are not covered by our products by default....
    May 27, 2021 3 min read
  • Web

    The first Ribbon Bar for Silverlight, to fully comply with the Microsoft fluent UI guidelines.

    This week we will release new major feature for the RadRibbonBar – keyboard access. KeyTips provide keyboard access to every control in the Ribbon. They are activated by pressing the ALT key, following by the key for the button you want to activate. KeyTips are very well explained at the Microsoft’s fluent UI guidelines, you can read more about KeyTips on msdn… This feature is in the Required section from the Ribbon specification, but it’s nature and hard implementation details was preventing us from implementing it sooner. Currently this feature is the one with most votes in our PITS system, thus we considered it for...
    May 27, 2021 2 min read
  • Productivity

    Localizing the Validation

    The example will work with the latest internal build and the feature required will be released in the Silverlight4, 2010.Q2.SP1. The Full Source Code is here. A few months ago we noticed a lot of XAML code being copied around. It was supposed to enable validation in our controls. It is all about those red borders showing around controls like RadNumericUpDown, RadComboBox, RadDatePicker etc. So we have created the ValidationTooltip in the assembly Telerik.Windows.Controls, namespace Telerik.Windows.Controls.Chromes that was supposed to encapsulate these visuals keeping all the storyboards and templates at one place. This all happened in Silverlight 3. Now in Silverlight 4...
    May 27, 2021 6 min read
  • Productivity Testing

    VS 2010 Disabled Deployment Trouble with UI Coded Tests

    VS 2010 introduced a surprise for us – the deployment feature is disabled by default. Let me explain with this post how this hits everyone running coded tests and how to resolve the problem. Here is a common scenario one can hit the problem with: 1. Add and record a WebUI Test Studio test in Visual Studio 2010. 2. Convert a step to code. 3. Go to Test View and run the test – you may get an error similar to the following one:   As you may note VS looks for the .dll in the TestResults and it’s Out ...
    May 27, 2021 2 min read
  • Productivity

    Custom Code Generation

    The good thing about the code generation is that you can easily modify it to suite your needs. Today I will show you how to modify the code generation template so that it generates string properties that HtmlEncode and HtmlDecode the values in their respective setter and getter. The desired outcome will look like :  private string firstName;   public virtual string FirstName  {      get     {         return HttpContext.Current.Server.HtmlDecode(this.firstName);     }     set     {         this.firstName = HttpContext.Current.Server.HtmlEncode(value);     } } You can achieve this in a couple of steps. First we need to locate the T4 templates that OpenAccess uses. The C# templates are usually located under C:\Program Files (x86)\Telerik\OpenAccess ORM\dsl\CodeGenerationTemplates\CSharp. Note that it would...
    May 27, 2021 2 min read
  • Productivity Testing

    Telerik WebUI Test Studio Q2 2010 webinar tomorrow

    We have announced the Q2 release last week and as usual we are hosting online events to present the new features throughout all Telerik product lines. The webinar for Telerik WebUI Test Studio is tomorrow (Friday, July 23rd) @ 11AM EDT.  Register now - the webinar is not only free but also during the live event attendees will have the chance to win a Telerik Ultimate Collection license (valued at $1999) We are excited about all the great new features we have introduced in WebUI Test Studio. We will be glad to show you all the cool demos and get ...
    May 27, 2021 1 min read
  • Productivity

    Usability tips with OpenAccess

    As solutions get more complicated every day so does the domain model. Navigating in the designer can become quite frustrating if you have a rather large database with 100+ tables. There is however a light at the end of the tunnel.  There are a few often overlooked features of the designer that can make your life easier when dealing with large models.  First of all you should get familiar with search bar on top of the Model Explorer and the Schema Explorer. It is the easiest way to find a class or a table by its name. So what do you do...
    May 27, 2021 2 min read
  • Productivity

    What is a Persona in TeamPulse?

    Personas are fictitious characters created to represent the different user types of a system. Personas will help you visualize the people behind the keyboard using the features of the software your team is creating. You will can describe exactly how personas use your software by describing the interaction in a story. When defining software requirements in the context of a persona (complete with a picture, a name, and a rich description of a personas goals, objectives, constraints, and day to day realities) teams can better define how to approach the design of the features the persona interacts with. TeamPulse provides ...
    May 27, 2021 2 min read