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

[Solved] set focus on a textbox in new appointment view

1 Answer 96 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
sf
Top achievements
Rank 1
sf asked on 23 Oct 2009, 02:11 AM
I am having difficulties to figure out how to set focus on a textbox in new appointment view or edit appointment view (e.g. the subject textbox), please help
thanks in advance

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 23 Oct 2009, 08:22 AM
Hello,

I hope you are using AdvancedForm for editing and inserting appointments and want to focus to the subject textbox on opening the form. If so try the following code snippet and see whether it helps.

C#:
 
protected void RadScheduler1_FormCreated(object sender, SchedulerFormCreatedEventArgs e) 
    (e.Container.FindControl("Subject"as RadTextBox).Focus(); // Access the textbox and set focus 

-Shinu.
Tags
Scheduler
Asked by
sf
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or