Telerik blogs

Latest

  • Web

    Manage all Resources and Appointments data for RadScheduler for Silverlight using RIA Services.

    This blog post could be helpful for those who seek a way to store and retrieve all appointments information like Resources, TimeMarkers, Categories. It also provides a handy way to handle recurrence exceptions without any additional code. 1. Database design (This step can be avoided if a DataModel is initially created and then a database is generated from it). The key points that need to be taken into consideration when planning the database are: Where to save appointments Where to save recurrent appointments’ exceptions Where to save resources and how to relate them with appointments Here is the database schema used in...
  • Release

    Q1 2010 SP2 (version 2010.1.603) of Telerik XAML controls is now live

    Our latest Service Pack release includes a lot of fixes and improvements in our XAML controls. You can read full release notes at: RadControls for Silverlight Release Notes RadControls for WPF Release Notes To download the files please log into your accounts and go to the Downloads section. The online demos have been updated and available at: Silverlight Online Demos With this release we uploaded the brand new WPF QSF, whose design is now analogical  to the RadControls for Silverlight online demos, thus once again demonstrating the code re-usability between the two suites. WPF Online...
  • Desktop WPF

    How - to: Bind to IsExpandable Property of GridViewRow in RadGridView for WPF with Attached Behaviors.

    Attached behaviors give you the opportunity to go far beyond the build-in functionality and to create one of your own. You are free to associate an action with an event or a property value. All you need is the assembly that comes with Expression Blend - System.Windows.Interactivity.dll. In our case here the goal will be to create a behavior that enables us to bind to the property of the RadGridView’s rows – IsExpandable. Normally you do not need to do nothing more but to set it to the value you want. However, if it is necessary to use it after...
  • 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
  • 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
  • Desktop WPF

    Building BI Dashboards with Telerik RadControls for Silverlight and WPF Webinar Follow-up

    Despite the initial audio and connectivity issues, the Building BI Dashboards with RadControls for Silverlight and WPF Webinar proceeded well and we got to dive into some of the issues people face in these scenarios as well as how RadControls for Silverlight and RadControls for WPF can help answer those challenges.  This is very close to the presentation that I gave this past weekend at the New England BI Code Camp, except the webinar is a little more focused on Telerik controls.  :) In this presentation, we look at a fictional requirements list for a customer would look like and why Silverlight or WPF can...