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

Setting the initial value of a Dynamic ResourceType

2 Answers 39 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
SSirica
Top achievements
Rank 3
Iron
Iron
Iron
SSirica asked on 18 Aug 2010, 07:14 PM

Due to programatic circumstances I'm using a radScheduler with a dynamically added resource done like this:

Dim ds As DataSet
'Code to load dataset 
Dim rt As New Telerik.Web.UI.ResourceType 
rt.DataSource = ds
rt.Name = "Members" 
rt.ForeignKeyField = "user_id" 
rt.KeyField = "user_id" 
rt.TextField = "user_name" 
rsATSch.ResourceTypes.Add(rt)

Now what I'd like to do is to set the value of the resource when Mode = SchedulerFormMode.AdvancedInsert.
I've tried doing a e.Container.FindControl("Members") in the FormCreated event, but it always comes up Nothing.
 

So my question is, how do I set the value of a dynamically added resource on an AdvancedForm when adding an appointment?

 

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 23 Aug 2010, 02:32 PM
Hi SSirica,

Please, try the following:

    e.Container.FindControl("ResMembers")

You can review this kb article for reference: How to access controls in the advanced form.


Greetings,
Peter
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
SSirica
Top achievements
Rank 3
Iron
Iron
Iron
answered on 23 Aug 2010, 02:47 PM
Thank you!!!  That is exactly what I was looking for. 

I had run across that kb aricle and I just didn't gleen this method from that.  Anyway, it's working now.  Thanks again.
Tags
Scheduler
Asked by
SSirica
Top achievements
Rank 3
Iron
Iron
Iron
Answers by
Peter
Telerik team
SSirica
Top achievements
Rank 3
Iron
Iron
Iron
Share this question
or