Setting the initial value of a Dynamic ResourceType

3 posts, 1 answers
  1. SSirica
    SSirica avatar
    50 posts
    Member since:
    Jan 2007

    Posted 18 Aug 2010 Link to this post

    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" 

    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. Answer
    Peter avatar
    6637 posts

    Posted 23 Aug 2010 Link to this post

    Hi SSirica,

    Please, try the following:


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

    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
  3. DevCraft R3 2016 release webinar banner
  4. SSirica
    SSirica avatar
    50 posts
    Member since:
    Jan 2007

    Posted 23 Aug 2010 Link to this post

    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.
Back to Top