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

[Solved] Append additional information in the subject line

1 Answer 75 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Aditya
Top achievements
Rank 1
Aditya asked on 25 Jun 2009, 12:59 PM
All,
        I want to append additional information in the subject line of the scheduler. So what I was trying to do is say "Select Subject + User.LastName +',' + User.FirstName  + User.PatId As Details From Appointment and the User table" and then was trying to set the subject field to the details column. However when I try to update it it throws an error ? Does anyone know of a better way of doing this ?

Thanks,
Aditya

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 26 Jun 2009, 02:02 PM
Hello Aditya ,

Please, consider using the AppointementDataBound event for this case. For example:

 <ResourceTypes> 
           <telerik:ResourceType DataSourceID="SqlDataSource2" ForeignKeyField="UserID"   
               KeyField="ID" Name="User" TextField="UserName" /> 
       </ResourceTypes> 

 protected void RadScheduler1_AppointmentDataBound1(object sender, SchedulerEventArgs e)  
    {  
        if(e.Appointment.Resources.GetResourceByType("User") != null)  
            e.Appointment.Subject += ", For user: " + e.Appointment.Resources.GetResourceByType("User").Text;  
        
    } 



Regards,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Scheduler
Asked by
Aditya
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or