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

Custom Attribute Values

3 Answers 138 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Clarke
Top achievements
Rank 1
Clarke asked on 09 May 2008, 05:30 PM
Greetings, How do you assign a vanlue to a custom attribute based on an external drop down list or text box?

3 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 12 May 2008, 11:10 AM
Hi Clarke,

What do you mean by assigning a custom attribute based on an external control? Is it that, for example, you want to have a DropDownList in a Custom Edit Form which is assigned to a Custom Attribute?

Kind regards,
Simon
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Clarke
Top achievements
Rank 1
answered on 15 May 2008, 05:06 PM
I have a dropdown list on the web form page and want to pull the value of that into the RADScheduler attributes when creating an new appointment
0
T. Tsonev
Telerik team
answered on 16 May 2008, 03:27 PM
Hello Clarke,

You can handle the FormCreating event to populate the appointment with the data from the drop-down list:

protected void RadScheduler1_FormCreating(object sender, SchedulerFormCreatingEventArgs e) 
    if (e.Mode == SchedulerFormMode.Insert || 
        e.Mode == SchedulerFormMode.AdvancedInsert) 
    { 
        e.Appointment.Attributes["Test"] = "Test"
    } 


Sincerely yours,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Scheduler
Asked by
Clarke
Top achievements
Rank 1
Answers by
Simon
Telerik team
Clarke
Top achievements
Rank 1
T. Tsonev
Telerik team
Share this question
or