This is a migrated thread and some comments may be shown as answers.

Scheduler not displaying appointments when bound to CSLA object

2 Answers 29 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 1
Joe asked on 22 Aug 2012, 12:23 PM
I had previously been able to display, update, insert and delete appointments when using a SqlDataSource.  Now I am attempting to use a CslaDataSource - just to display appointments for now - and am having some trouble.

I have verified that the collection that I am binding to the scheduler contains the appointment objects I expect to see, and after I bind (in the CslaDataSource's SelectObject event handler, via the EventArgs' BusinessObject property) the scheduler's Appointments collection contains those same objects.  However, for some reason they never render on the page - it always appears that the schedule is completely empty.

Calls to the scheduler's DataBind() method are what cause the SelectObject events to fire in the first place, so it's not a simple omission of a call to DataBind().  I have also verified that the resource key values match between the scheduler's Resources and Appointments collections.

Thanks in advance for any help!

Cheers,
Joe



2 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 23 Aug 2012, 04:00 PM
Hello Joe,

Can you send us a sample via a support ticket which we can test locally?

Kind regards,
Peter
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Joe
Top achievements
Rank 1
answered on 27 Aug 2012, 04:57 PM
Hi Peter,

The problem was that while the attribute's resource foreign key was declared as an int, I had defined the resource's primary key as a long - the net result being that the keys did not match, even though they did have the same value.

Best regards,
Joe
Tags
Scheduler
Asked by
Joe
Top achievements
Rank 1
Answers by
Peter
Telerik team
Joe
Top achievements
Rank 1
Share this question
or