Telerik blogs
  • Productivity

    Using Telerik’s new LINQ Implementation Part I: Automatic Styles

    Last week Telerik released a service pack for OpenAccess Q1. The service pack fixes a few issues with Telerik’s new LINQ implementation working under Visual Studio 2010. In addition, the service pack shipped the Data Services Wizard; the Data Service Wizard is no longer a separate install. You can use the Data Service Wizard with traditional OpenAccess classes or the new LINQ implementation. Today I will show show you a new feature of the wizard: automatically creating a styled Silverlight application from your domain model. Future blog posts will show how to use RIA Services as well as SQL Azure. To get started open up Visual Studio 2010 and create...
    June 03, 2010
  • Productivity Reporting

    An Overview of Connecting to Data and Using Expressions in Telerik Reporting Webinar

    Earlier today, I presented a webinar about Connecting to Data and Using Expression in Telerik Reporting. Thanks to everyone who attended and I hope you all learned something new. If you were unable to attend, the webinar has been recorded and is now available on Telerik TV. I've posted the link below. An Overview of Connecting to Data and Using Expression in Telerik Reporting The latest release of Telerik Reporting features two completely new data source components, the SqlDataSource component and the ObjectDataSource component. These components make it easy to bind to Business Objects or ADO.NET supported databases. Once a ...
    June 03, 2010
  • Desktop WPF

    Breadcrumb hierarchy navigation for RadGridView

    For my first blog post I’m going to present a little pet project inspired by requests from some of our customers. And so, without further ado: The Breadcrumb is a simple control that analyzes the type of the collection found in the RadGridView’s ItemsSource property and automatically resolves data hierarchies. Usage is pretty straight-forward. Place the control anywhere you like and then connect it to the RadGridView, all in XAML. Example: <bread:Breadcrumb Grid.Row="0" Margin="5" SourceGridView="{Binding ElementName=radGrid}"/> The logic behind the type analysis algorithm is simple: represent every collection as a generic IEnumerable<> and get the type of the generic argument. So if you have an array of...
    May 31, 2010
  • Web

    How To: Synchronize your UI selected items with your data context using MVVM and Blend behaviors for Silverlight and WPF

    Very often you need “two-way” binding between some UI component with multiple selection and a data context property for selected items – let’s say RadGridView and the following model: XAML <telerik:RadGridView ItemsSource="{Binding Data}" SelectionMode="Extended" SelectedItem="{Binding SelectedItem, Mode=TwoWay}"> … C# public class MyDataContext : INotifyPropertyChanged { ... ObservableCollection<MyObject> _SelectedItems; public ObservableCollection<MyObject> SelectedItems { get ...
  • Productivity

    Mocking successive calls of similar type via sequential mocking

    In this post , i show how you can benefit from  sequential mocking feature[In JustMock] for setting up expectations with successive calls of same type.  To start let’s first consider the following dummy database and entity class. public class Person {     public virtual string Name { get; set; }     public virtual int Age { get; set; } } public interface IDataBase {     T Get<T>(); }   Now, our test goal is to return different entity for successive calls on IDataBase.Get<T>(). By default, the behavior in JustMock is override , which is similar to other popular mocking tools. By override it means that the tool will consider always the latest user setup. Therefore, the first example will return the latest entity every-time and...
    May 31, 2010
  • Productivity

    Using Telerik’s new LINQ Implementation Part I: Automatic Styles

    Last week Telerik released a service pack for OpenAccess Q1. The service pack fixes a few issues with Telerik’s new LINQ implementation working under Visual Studio 2010. In addition, the service pack shipped the Data Services Wizard; the Data Service Wizard is no longer a separate install. You can use the Data Service Wizard with traditional OpenAccess classes or the new LINQ implementation. Today I will show show you a new feature of the wizard: automatically creating a styled Silverlight application from your domain model. Future blog posts will show how to use RIA Services as well as SQL Azure. To get started open up Visual Studio 2010 and create...
    June 03, 2010
  • Productivity Reporting

    An Overview of Connecting to Data and Using Expressions in Telerik Reporting Webinar

    Earlier today, I presented a webinar about Connecting to Data and Using Expression in Telerik Reporting. Thanks to everyone who attended and I hope you all learned something new. If you were unable to attend, the webinar has been recorded and is now available on Telerik TV. I've posted the link below. An Overview of Connecting to Data and Using Expression in Telerik Reporting The latest release of Telerik Reporting features two completely new data source components, the SqlDataSource component and the ObjectDataSource component. These components make it easy to bind to Business Objects or ADO.NET supported databases. Once a ...
    June 03, 2010
  • Desktop WPF

    Breadcrumb hierarchy navigation for RadGridView

    For my first blog post I’m going to present a little pet project inspired by requests from some of our customers. And so, without further ado: The Breadcrumb is a simple control that analyzes the type of the collection found in the RadGridView’s ItemsSource property and automatically resolves data hierarchies. Usage is pretty straight-forward. Place the control anywhere you like and then connect it to the RadGridView, all in XAML. Example: <bread:Breadcrumb Grid.Row="0" Margin="5" SourceGridView="{Binding ElementName=radGrid}"/> The logic behind the type analysis algorithm is simple: represent every collection as a generic IEnumerable<> and get the type of the generic argument. So if you have an array of...
    May 31, 2010
  • Web

    How To: Synchronize your UI selected items with your data context using MVVM and Blend behaviors for Silverlight and WPF

    Very often you need “two-way” binding between some UI component with multiple selection and a data context property for selected items – let’s say RadGridView and the following model: XAML <telerik:RadGridView ItemsSource="{Binding Data}" SelectionMode="Extended" SelectedItem="{Binding SelectedItem, Mode=TwoWay}"> … C# public class MyDataContext : INotifyPropertyChanged { ... ObservableCollection<MyObject> _SelectedItems; public ObservableCollection<MyObject> SelectedItems { get ...
  • Productivity

    Mocking successive calls of similar type via sequential mocking

    In this post , i show how you can benefit from  sequential mocking feature[In JustMock] for setting up expectations with successive calls of same type.  To start let’s first consider the following dummy database and entity class. public class Person {     public virtual string Name { get; set; }     public virtual int Age { get; set; } } public interface IDataBase {     T Get<T>(); }   Now, our test goal is to return different entity for successive calls on IDataBase.Get<T>(). By default, the behavior in JustMock is override , which is similar to other popular mocking tools. By override it means that the tool will consider always the latest user setup. Therefore, the first example will return the latest entity every-time and...
    May 31, 2010