Book Image

Telerik WPF Controls Tutorial

By : Daniel R. Spalding
Book Image

Telerik WPF Controls Tutorial

By: Daniel R. Spalding

Overview of this book

<p>Telerik Reporting is a lightweight reporting solution for all .NET cloud, web, and desktop platforms (Azure, Silverlight, WPF, ASP.NET, and Windows Forms) which targets developers and end users alike. Rich interactive and reusable reports can be created by developers in Visual Studio and by end users in the desktop-based Report Designer.</p> <p>This book will guide you through working with specific Telerik WPF controls as well as working with the database and other methods to load the controls. It will focus on four key technologies: the DataContext property of WPF, Telerik RadControls for WPF, XML serialization, and application security.</p> <p>Starting with the basics, Telerik WPF Controls Tutorial will take you from the simple usage of a DataTable to serializing XML files into objects, covering a discussion of different types of security and validation for WPF windows along the way.</p> <p>This book will start out by showing you the simple methods of populating Telerik RadControls using a DataTable. You will then move on to look at populating a generic list of objects from a database as well as serializing XML files into class objects. You will cover how to secure a WPF application using a simple database example as well as Active Directory to determine navigation control loading. You will then review using the Telerik API interface classes to load Gantt information. With this book, you will be guided through building an application with the addition of all the important controls along with provisions for data entry, layouts, editors, navigation, and scheduling.</p> <p>This book will teach you the different aspects of the Telerik controls, from using the DataContext property to loading the controls using the Telerik API references. The book will also cover other WPF subjects such as security and WPF validation of the DataContext property.</p>
Table of Contents (13 chapters)

Binding to a System.Data.DataTable


The first exercise will be to incorporate the RadAutoCompleteBox control and create a useable sample on the MainWindow.xaml file. We will be using RadGridView to verify the selection information from the RadAutoCompleteBox control, and a checkbox to determine how RadGridView will be populated. RadGridView will populate with customer orders based on the selection of a customer from the RadAutoCompleteBox control.

The first step will be to add the RadAutoCompleteBox control and RadGridView to your MainWindow.xaml window. Place the RadAutoCompleteBox control above RadGridView on your MainWindow.xaml file, and a checkbox next to the RadAutoCompleteBox control, as shown in the following screenshot:

There are several key properties that are set in the RadAutoCompleteBox control that we need to focus on in order to understand how the RadAutoCompleteBox control works:

  • TextSearchMode: This is set to Contains. There are four settings for the TextSearchMode property...