Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to bind SchedulerControl to SQL Server database

$
0
0

This example demonstrates how to bind the SchedulerControl to a database located in MS SQL Server 2005.

The basic steps to create this example are equivalent to the steps described in Lesson 1 - Bind a Scheduler to Data. However, several additional steps are added to demonstrate more SchedulerControl capabilites:

- Resources for appointments
Besides the appointment mappings, resource mappings are defined in the SchedulerStorage. A separate TableAdapter is used to retrieve resources from the database.

- Resource sharing
The AppointmentStorageBase.ResourceSharing Property value is set to true (note the It is impossible to set ResourceSharing property to true via XAML bug report).

To test this example locally, you should setup our CarsXtraScheduling sample database in your SQL Server instance (you can download the corresponding *.sql scripts from the How to bind ASPxScheduler to MS SQL Server database example).

Question Comments

Added By: Arti Vengurlecar at: 7/15/2014 2:10:58 AM    

How to generate Dataset using SQL server?

Added By: Cliff Knasinski at: 8/20/2014 10:57:35 AM    

Are there any examples out there that show how you can do this with MVVM design methods?  I have a large application that uses connection to a SQL Server Database utilizing the LINQ to XML class that I bind to ViewModels.  I would like to use these existing view models as much as possible in binding to the Scheduler. I already have view models of projects with start and end dates and would like to use them if possible with slight adjustments to them if needed.

Added By: Elliot (DevExpress Support) at: 8/21/2014 12:12:41 AM    

Hello,

To process your recent post more efficiently, I created a separate ticket on your behalf: T142439: Implementing MVVM. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>