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

how to find panel in radscheduler advancedform

1 Answer 41 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Lili
Top achievements
Rank 1
Lili asked on 13 Oct 2013, 02:42 AM
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.

<AdvancedInsertTemplate>
 <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>
 .......
</AdvancedInsertTemplate>
<AdvancedEditTemplate>
......
  <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") %>'  />
  </asp:Panel>
 .......
</AdvancedEditTemplate>

 

 


1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 16 Oct 2013, 01:43 PM
Hello,

 
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.

Regards,
Plamen
Telerik
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.
Tags
General Discussions
Asked by
Lili
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or