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

[Solved] Setting default user information in the Subject box

3 Answers 147 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
sabarishbabu
Top achievements
Rank 1
sabarishbabu asked on 18 Aug 2009, 11:11 AM

Hi,

Whenusing the RADScheduler I would like to add the user information in the subject sectionof the Inline Edit and the detail window as default.

Forexample when I login as a user and I am trying to set up an appointment Ishould be able to see my Name in the subject box as default.

Thanks

Sabrish

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 18 Aug 2009, 12:46 PM
Hello sabarishbabu,

You can handle FormCreated like this:
 protected void RadScheduler1_FormCreated(object sender, SchedulerFormCreatedEventArgs e)  
    {  
        if (e.Container.Mode == SchedulerFormMode.Insert)  
        {  
            TextBox subject = e.Container.FindControl("SubjectTextBox"as TextBox;  
            subject.Text = "Custom inline form text";  
        }  
        //Optionally, add the following:  
        //else if (e.Container.Mode == SchedulerFormMode.AdvancedInsert)  
        //{  
        //    RadTextBox subjectTextbox = e.Container.FindControl("Subject") as RadTextBox;  
        //    subjectTextbox.Text = "Custom advanced form text";  
 
        //}  
    } 



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.
0
sabarishbabu
Top achievements
Rank 1
answered on 19 Aug 2009, 06:12 AM
Hi Peter,

Thank you for your reply.
Its works fine. 
How can I Identify the control name Id like  (SubjectTextBox) ?

Thanks
Sabarish
0
sabarishbabu
Top achievements
Rank 1
answered on 19 Aug 2009, 01:11 PM
Hi,
1. If I want to click the time slot for inline insert, the custom message will be populated, its work fine.
2. During the popup window opened existing appointements subject message are cleared. only the Appintments box displayed.
3. Switch back to other views populated the subject message in the appointments. 
4. Any idea?

Thanks
Sabarish
Tags
Scheduler
Asked by
sabarishbabu
Top achievements
Rank 1
Answers by
Peter
Telerik team
sabarishbabu
Top achievements
Rank 1
Share this question
or