how to find panel in radscheduler advancedform

2 posts, 0 answers
  1. Lili
    Lili avatar
    18 posts
    Member since:
    Jun 2012

    Posted 12 Oct 2013 Link to this post

    Hello, Telerik team,
    we use radscheduler advancedtemplate. The requirement Do NOT show description panel when select resource rooms 201. When select other resource Rooms will show up that description panel.

    Please see below code. We have panel in <AdvancedInsertTemplate>and <AdvancedEditTemplate> block for description label and textbox. When select a room 201(please see attached screen), need to hide that description panel. Please help for how I can find that panel ID in "roomResource_SelectedIndexChanged", then make that panel visible is false or you have good solution for hide that panel? Thanks.

     <asp:DropDownList ID="roomResource" runat="server" OnSelectedIndexChanged="roomResource_SelectedIndexChanged"
     AppendDataBoundItems="true" AutoPostBack="true" DataSourceID="SqlDataSource1" SelectedValue='<%#Eval("room") %>' DataTextField="roomname" DataValueField="roomid" />
     <asp:Panel ID=DescriptionInset" runat="server">
         <asp:Label ID="Room1Desc" Text="Description" runat="server"></asp:Label>
         <asp:TextBox ID="txtRoom1Desc" runat="server"></asp:TextBox> />
      <asp:Panel ID="DescriptionEdit" runat="server">
            <asp:Label ID="Label2" Text="Description" runat="server"></asp:Label>
            <asp:TextBox ID="txtRoom1Desc" runat="server"  Text='<%# Eval("Description") %>'  />



  2. Plamen
    Plamen avatar
    3040 posts

    Posted 16 Oct 2013 Link to this post


    From the code provided I have noticed that you are using asp:DropDownList for the resources-please have in mind that in such scenarios we recommend using Telerik RadComboBox od RadDropDownList and find the control and handle its client event as for example it is described in the Clear selection for the user combobox if no room is selected in this help topic.

    Hope this will be helpful.

    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 the blog feed now.
Back to Top