Telerik blogs
  • Productivity

    Revised Code Library projects

    In order to provide a better usability with the 2010 Q1 release we introduced the new Visual Designer for Telerik Open Access ORM. We have been focusing on what we can do to improve your experience using OpenAccess. We have also introduced the new Context replacing the Object Scopes and various types of mappings used to define our model (currently only in reverse mapping scenarios). This being a major change we felt we needed to revise our Code Library assets and show you how to use OpenAccess to its full potential. Below is a list of the revised examples : ·...
    May 12, 2010
  • Desktop WinForms

    Styling Cells in RadGridView for WinForms

    In RadGridView you have to handle the CellFormatting event when you want to customize the look and feel of grid cells. This is so because RadGridView uses UI virtualization. It creates elements only for cells that are currently visible - when scrolling they are reused. Of course, it will be much easier if we could access the cell directly and set its visual properties without an event. In our next release (Q2 2010) this will be possible. By using the Style property you can set the desired background color or change the font size. Here is a sample: this.radGridView1.Rows[5].Cells["Name"].Style.BackColor = Color.Red; this.radGridView1.Rows[5].Cells["Name"].Style.Font = new Font(SystemFonts.DialogFont, FontStyle.Italic);   All...
  • Productivity

    Using user-defined methods in a LINQ query

    As you are aware, for a given LINQ query Telerik OpenAccess ORM tries to push the query parts to the server as far as possible. Doing so minimizes the amount of data fetched from the server. For example, consider this very simple query that fetches all discontinued Product entities from the Northwind database. var query = from p in scope.Extent<Product>()             where p.Discontinued             select p;   The generated SQL statement would similar to -...
    May 11, 2010
  • Productivity

    Telerik OpenAccess ORM Concurrency Control

    Telerik OpenAccess ORM provides you with a mechanism to handle the Concurrency control. Concurrency control is the management of contention for data resources. It ensures that the transactions are executed following the ACID rules. There are two concurrency control schemes: pessimistic and optimistic. A concurrency control scheme is considered pessimistic when it locks a given resource early in the data-access transaction and does not release it until the transaction is closed. A concurrency control scheme is considered optimistic when locks are acquired and released over a very short period of time at the end of a transaction. The Telerik OpenAccess supports several modes for Concurrency...
    May 10, 2010
  • People

    Do you know a deserving developer in New Orleans?

    TechEd 2010 is exactly one month away and Telerik crew is slowly getting ready to converge from six different cities (Sofia, Boston, Houston, Austin, Hong Kong and Toronto) at New Orleans. New Orleans is known for many things, such as being one of the most prominent Jazz music cities in America,
  • Productivity

    Revised Code Library projects

    In order to provide a better usability with the 2010 Q1 release we introduced the new Visual Designer for Telerik Open Access ORM. We have been focusing on what we can do to improve your experience using OpenAccess. We have also introduced the new Context replacing the Object Scopes and various types of mappings used to define our model (currently only in reverse mapping scenarios). This being a major change we felt we needed to revise our Code Library assets and show you how to use OpenAccess to its full potential. Below is a list of the revised examples : ·...
    May 12, 2010
  • Desktop WinForms

    Styling Cells in RadGridView for WinForms

    In RadGridView you have to handle the CellFormatting event when you want to customize the look and feel of grid cells. This is so because RadGridView uses UI virtualization. It creates elements only for cells that are currently visible - when scrolling they are reused. Of course, it will be much easier if we could access the cell directly and set its visual properties without an event. In our next release (Q2 2010) this will be possible. By using the Style property you can set the desired background color or change the font size. Here is a sample: this.radGridView1.Rows[5].Cells["Name"].Style.BackColor = Color.Red; this.radGridView1.Rows[5].Cells["Name"].Style.Font = new Font(SystemFonts.DialogFont, FontStyle.Italic);   All...
  • Productivity

    Using user-defined methods in a LINQ query

    As you are aware, for a given LINQ query Telerik OpenAccess ORM tries to push the query parts to the server as far as possible. Doing so minimizes the amount of data fetched from the server. For example, consider this very simple query that fetches all discontinued Product entities from the Northwind database. var query = from p in scope.Extent<Product>()             where p.Discontinued             select p;   The generated SQL statement would similar to -...
    May 11, 2010
  • Productivity

    Telerik OpenAccess ORM Concurrency Control

    Telerik OpenAccess ORM provides you with a mechanism to handle the Concurrency control. Concurrency control is the management of contention for data resources. It ensures that the transactions are executed following the ACID rules. There are two concurrency control schemes: pessimistic and optimistic. A concurrency control scheme is considered pessimistic when it locks a given resource early in the data-access transaction and does not release it until the transaction is closed. A concurrency control scheme is considered optimistic when locks are acquired and released over a very short period of time at the end of a transaction. The Telerik OpenAccess supports several modes for Concurrency...
    May 10, 2010
  • People

    Do you know a deserving developer in New Orleans?

    TechEd 2010 is exactly one month away and Telerik crew is slowly getting ready to converge from six different cities (Sofia, Boston, Houston, Austin, Hong Kong and Toronto) at New Orleans. New Orleans is known for many things, such as being one of the most prominent Jazz music cities in America,