Telerik blogs
  • 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
  • People

    Agile and OData at TechEd North America 2010

    Looking forward to heading to New Orleans this weekend and doing an all day Agile pre-con on Sunday with Joel Semeniuk. There is still space to sign up, here is the info to look for: PRC07 | The Agile Methodology Demystified: Implementing Agile in Your Organization Track: Development Practices Wednesday afternoon I will also be presenting a breakout session on OData:. Below is the official write-up, however, I will be showing first how to build an OData service (first via Astoria or *.Data Services, and then with other methods such as SQL Azure, etc) and then how to consume the service via several different technologies including ASP.NET, Silverlight,...
    May 31, 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
  • People

    Agile and OData at TechEd North America 2010

    Looking forward to heading to New Orleans this weekend and doing an all day Agile pre-con on Sunday with Joel Semeniuk. There is still space to sign up, here is the info to look for: PRC07 | The Agile Methodology Demystified: Implementing Agile in Your Organization Track: Development Practices Wednesday afternoon I will also be presenting a breakout session on OData:. Below is the official write-up, however, I will be showing first how to build an OData service (first via Astoria or *.Data Services, and then with other methods such as SQL Azure, etc) and then how to consume the service via several different technologies including ASP.NET, Silverlight,...
    May 31, 2010