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

[Solved] problem with DataBound Scheduler

2 Answers 222 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 17 Oct 2007, 02:28 PM
Why during ItemDataBound event I cann't access to dataitem property(becouse there isn't).

2 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 17 Oct 2007, 02:45 PM
Hi Mark,

Indeed, RadScheduler does not expose DataItem property unlike RadMenu or RadPanelbar. However, we have decided no to implement such property because custom attributes make it obsolete. Consider the follwing example:


<telerik:RadScheduler ID="RadScheduler1" runat="server" CustomAttributeNames="NewSubject" ...>  

protected void RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e)     
    {     
        e.Appointment.Subject = e.Appointment.Attributes["NewSubject"];     
    }    
 

Setting CustomAttributeNames="NewSubject" instructs RadScheduler to populate the custom attribute with values from the "NewSubject" column.

If custom attributes don't help you achieve your goal, contact us with a description of your scenario and we will try to find a solution.


Best wishes,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Mark
Top achievements
Rank 1
answered on 18 Oct 2007, 09:59 AM
Thank You very much for your help. This is very good solution for me.
Tags
Scheduler
Asked by
Mark
Top achievements
Rank 1
Answers by
Peter
Telerik team
Mark
Top achievements
Rank 1
Share this question
or