Dropdown Control in Rad Scheduler

10 posts, 0 answers
  1. Hammad Pasha
    Hammad Pasha avatar
    2 posts
    Member since:
    Nov 2009

    Posted 23 Dec 2009 Link to this post

    Hi,
    I am using Rad Scheduler for booking a conference room. I have a scenario where user can book conference room for others as well. Now my question is

    1. Does Telerik enables us to add control in the Appointment Insert form like a dropdown list to ask user wether he wants to get the room booked for him self or some one other ??
    2. Except for Subject I would like to add some more details of the booking that are kept in separate columns in the Data Table such as Meeting Room Booked By, Booked For etc. Is it possible ??
    3. The requests sent by users are then sent to the approver to approve, Deny, Or cancel requests. Is there any way to handle these administrative tasks using Scheduler UI ??


    Awaiting responses.

    Best Regards
    Hammad Haneef Pasha



  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 25 Dec 2009 Link to this post

    Hello Hammad,

    1. You can use resources to allow an appointment to be tagged for a specific person. Here is an online demo for reference:
    http://demos.telerik.com/aspnet-ajax/scheduler/examples/resources/defaultcs.aspx

    The resource dropdown control will be displayed in the advanced form of RadScheduler. To start editing or inserting directly in the advance form, you need to set StartEditingInAdvancedForm and StartInsertingInAdvancedForm to true.

    2. You can store additional information about an appointment not only using resources, but also via custom attributes. Simply set CustomAttributeNames="Room, BookedBy, Booked", provided that you have the corresponding fields in the RadScheduler's data source.

    3. You can use the AppointmentInsert and AppointmentUpdate server events to send the request for approval.

    We will be glad to answer any other questions you might have.


    Kind regards,
    Peter
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Amit
    Amit avatar
    10 posts
    Member since:
    Feb 2011

    Posted 10 Feb 2011 Link to this post

    I want to add Drop Down at run time on RadScheduler form. So is it possible to add number of Drop Down control dynamically at run time.
    Please let me know if there is any solution for the same.

    Thanx in advance
    Amit Thakkar
  4. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 14 Feb 2011 Link to this post

    Hi Amit,

    Technically speaking, it is possible, but I am not sure what exactly you need to achieve. If you handle FormCreated, you can add controls to the advanced form like this:

    protected void timeBlockRadSchedulerControl_FormCreated(object sender, SchedulerFormCreatedEventArgs e)
       {
           if ((e.Container.Mode == SchedulerFormMode.AdvancedEdit) || (e.Container.Mode == SchedulerFormMode.AdvancedInsert))
           {
               e.Container.Controls.Add(new RadComboBox());        
           }
       }


    Kind regards,
    Peter
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  5. Amit
    Amit avatar
    10 posts
    Member since:
    Feb 2011

    Posted 14 Feb 2011 Link to this post

    Hi Peter,

    Thanks for reply.

    Actually I want to add a drop down control dynamically on pressing a button. On clicking the Button , There can be number of drop down controls added on the advance insert template.

    am i clear with the description ? or shoud i explore it.?

    Kindly revert as soon as possible.

    Thanks & Regards
    Amit Thakkar
  6. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 15 Feb 2011 Link to this post

    Hello Amit,

    For this requirement, it might be better to use the Advanced Templates controls.


    Kind regards,
    Peter
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  7. Amit
    Amit avatar
    10 posts
    Member since:
    Feb 2011

    Posted 01 Mar 2011 Link to this post

    Hi Telerik Admin,

    I want to use dropdownlist on advanceinsert template of RadScheduler & on changing the index of the dropdown list, textbox should be visible i.e. I want to use selectedindexchange event of dropdownlist.

    So is it possible to track this event with advanceinsert template.?

    Also I want to use Reccurence on the same advance insert template. So how can I use reccurence option for the same..?

    Kindlt revert as soon as possible.

    Thanks & Regards
    Amit Thakkar

  8. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 02 Mar 2011 Link to this post

    Hello Amit,

    You can attach to SelectedIndexChanged directly in the Resource user control (ResourceControl.ascx).

    The recurrence functionality is already provided in the demo I suggested in the previous post. I hope I am not misunderstanding your question.

    All the best,
    Peter
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  9. Amit
    Amit avatar
    10 posts
    Member since:
    Feb 2011

    Posted 02 Mar 2011 Link to this post

    Hi Peter,

    Thanks for replying.

    Actually I am not using DropDown Control in Resource User Control (ResourceControl.ascx). I am using that control on the advanceinsert form in the same aspx file.

    I am calling that control through e.container.findControl() & then I am filling dropdown control in FormCeated property.

    Now On changing the index of that dropdown control, I need to make one textbox visible and also on changing again, it should be invisible. To achieve this I need to call SelectedIndexChange property. So How should I use this property.?

    Here I am giving overview about what I want to achieve.

    .aspx file
    ---------------------------------------
    <AdvancedInsertTemplate>
                    <table>
                                    <tr>
                                        <td  colspan="1">
                                            <asp:Label ID="lblSub" runat="server" Text="Subject :"></asp:Label>
                                        </td>
                                        <td colspan="2">
                                            <telerik:RadComboBox Runat="server" ID="rcbSubject" AutoPostBack="true" OnSelectedIndexChange=" rcbSubject_SelectedIndexChanged">
                    </telerik:RadComboBox>
                                        </td>
                                       
                                    </tr>
                                    <tr>
                                        <td colspan="3"><br /></td>
                                    </tr>
                                    <tr>
                                        <td colspan="1">
                                            <asp:Label ID="lblSubject" runat="server" Text="Specify Subject :" visible="false"></asp:Label>
                                        </td>
                                        <td colspan="2">
                                            <telerik:RadTextBox ID="TitleTextBox" tabindex="1" runat="server" Text='<%# Bind("Subject") %>' 
                                            TextMode="MultiLine" visible="false"></telerik:RadTextBox>
                                        </td>
                                      
                                    </tr>
                    </table>
    <AdvancedInsertTemplate>

    .cs file
    ------------------------------------------------
    protected void RadScheduler_FormCreated(object sender, AppointmentFormCreatedEventArgs e)
    {
        RadTextBox rtbSub = (RadTextBox)e.container.FindControl("TitleTextBox");

        RadComboBox rcbSubject = (RadComboBox)e.container.findControl("rcbSubject");
        //Here I am filling ComboBox from SQL Database
    }


    ---------------------------------------------------------------------------

    Now There is one data in DropDownList i.e. "Other". On selecting "Other" , TitleTextBox should be set to visible to true.
    & on selecting any other value except "Other", TitleTextBox should be set to visible to false.

    So How do I use SelectedIndexChange as it wont accept the name "rtbSub" in
    protected void rcbSubject_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e) {  }.

    I Hope, I am more clear to you than before. Let me know if there is any soltion for the same asap..

    Thanks & Regards 
    Amit Thakkar
  10. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 02 Mar 2011 Link to this post

    Hello Amit,

    Please, try the approach from this forum post.

    Basically the idea is to find the appContainer in SelectedIndexChanged from the parent of the combobox:

    SchedulerAppointmentContainer appContainer = (SchedulerAppointmentContainer)ComboBox.Parent;
    Appointment appointment = appContainer.Appointment;



    Regards,
    Peter
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Back to Top