Load on Demand Comboboxes on Advanced Form with Resource

2 posts, 0 answers
  1. davidp
    davidp avatar
    11 posts
    Member since:
    Jun 2012

    Posted 26 Nov 2012 Link to this post

    I am using Load on Demand ComboBoxes (http://www.telerik.com/support/kb/aspnet-ajax/scheduler/related-load-on-demand-radcomboboxes-in-the-advanced-form-of-radscheduler.aspx) in my Advanced Form.  The combos contain Specialty, Physician, and Contact Number rather than Continent, Country, City.  The Scheduler is setup with TimeLine View and is sorted by Specialty, which is setup as a Resource for Scheduler. 
    My issue is that if I double click on a time slot for a Specialty(e.g. Cardiology) when the advanced form loads Cardiology is pre-selected as the Specialty and the Physician combo does not get loaded.  I have to select another specialty for the Physicians to get loaded.  Would it be possible to set Specialty to 'Select a Specialty' No matter what Specialty time slot gets double clicked? 
    See attached screenshots



  2. Plamen
    Admin
    Plamen avatar
    2958 posts

    Posted 29 Nov 2012 Link to this post

    Hi David,

     
    One possible solution that I could think of is to check the resource of the Appointment object in the Page_Load event of the AdvancedForm code behind and load the data accordingly as it is done in the sample you linked:

    protected void Page_Load(object sender, EventArgs e)
       {
           if (ContinentsRadComboBox.Items.Count == 0)
           {
               // Check the resourse and fill the continents of the combo  
               LoadContinents();
           }


    Hope this will be helpful.

    Greetings,
    Plamen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top