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

Getting value of

3 Answers 56 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Danielle
Top achievements
Rank 1
Danielle asked on 09 Sep 2008, 07:32 PM
I'm sure I'm missing the obvious but how can I get the value entere into the text box from this Rad Panel code?

Thanks in advance-
Danielle

<

telerik:RadPanelItem Text="Case Age Filter" runat="server">

<Items>

<telerik:RadPanelItem runat="server">

<ItemTemplate>

<asp:Label ID="lblCaseAgeFilter" runat="server" Font-Size="10pt" Text="Show cases older than X days:"></asp:Label>

<asp:TextBox ID="CaseAgeFilter" runat="server" Font-Size="10pt" Height="15px" Width="25px"></asp:TextBox>

</ItemTemplate>

</telerik:RadPanelItem>

</Items>

</telerik:RadPanelItem>

</Items>

<CollapseAnimation Duration="100" Type="None" />

<ExpandAnimation Duration="100" Type="None" />

</telerik:RadPanelBar>

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 10 Sep 2008, 10:25 AM
Hello Danielle,

Please check this help article which shows how to access controls inside RadPanelBarItem templates.

Greetings,
Yana
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Danielle
Top achievements
Rank 1
answered on 10 Sep 2008, 12:51 PM
Yana et al...-

I found that article but it's not helping me. First, the event that causes the panel information to be evaluated happens outside the control.

Secondly, if I use this code (c#):

Label label = picker.Parent.FindControl("Show cases older than X days:") as Label I get an error that I must create a new instance of the label with the New keyword but when I do that I get another error.

In short, the example provided is not helping me. It could easily be that I'm relatively new to c# as well as Telerik controls.

Any additional suggestions aare appreciated.

Danielle
0
Yana
Telerik team
answered on 11 Sep 2008, 11:42 AM
Hi Danielle,

Please check the attached sample project, which shows how to access controls in templates. Download it and give it a try.

Regards,
Yana
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
PanelBar
Asked by
Danielle
Top achievements
Rank 1
Answers by
Yana
Telerik team
Danielle
Top achievements
Rank 1
Share this question
or