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

OnResourceHeaderCreated not firing

4 Answers 23 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Jeff Nafe
Top achievements
Rank 1
Jeff Nafe asked on 03 Dec 2008, 05:33 PM
In my scheduler, the OnResourceHeaderCreated is not firing. I've paired down my Scheduler to try and make sure that it's not due to any other properties and it doesn't appear to be.

Has anyone else had this problem?

From what I can see, none of the demos are using this event, so I can't look at a working example there.

Thanks!

Jeff

4 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 05 Dec 2008, 08:48 AM
Hi Jeff,

You need to have a resource type defined and to set the GroupBy property for the ResourceHeaderCreated event to occur. Attached is a small demo sample for reference.


Best wishes,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jeff Nafe
Top achievements
Rank 1
answered on 08 Dec 2008, 03:35 PM
Thanks for the example.

In our case, we are not loading the Scheduler upon Page Load. We are loading it once the user has entered some criteria. Because of this, the GroupBy value is not set within the scheduler, but programatically when binding. In this situation, the event does not fire.

You can demonstrate this with your code by removing the 'GroupBy = "Room"' from the Scheduler definition and adding the following line in Page Load:

        RadScheduler1.TimelineView.GroupBy = "Room";

In this case, it doesn't work.

When I add the GroupBy to my Scheduler definition, it bombs. I'm assuming that this is due to the fact that the Scheduler isn't binding until later.

Thanks, Jeff


0
Peter
Telerik team
answered on 09 Dec 2008, 02:23 PM
Hello Jeff,

I tested just as you suggested, but still there were no problems on our side. Could you please open a support ticket and send us a small working project demonstrating the issue?



Kind regards,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jeff Nafe
Top achievements
Rank 1
answered on 09 Dec 2008, 06:13 PM
Thanks, I have submitted ticket 179040
Tags
Scheduler
Asked by
Jeff Nafe
Top achievements
Rank 1
Answers by
Peter
Telerik team
Jeff Nafe
Top achievements
Rank 1
Share this question
or