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

retrieve value from radpanelbar

2 Answers 62 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
appdev
Top achievements
Rank 1
appdev asked on 02 Oct 2008, 03:31 AM
how do i retrieve value from itemtemplate in the radpanelbar? could anyone tell me? do i still say  strname = me.textbox1.text  or something else like find control first??thanks.

2 Answers, 1 is accepted

Sort by
0
Rosi
Telerik team
answered on 02 Oct 2008, 05:20 AM
Hello Duy,

First you need to access the control inside the item like this:

dim str AS String = DirectCast(RadPanelBar1.Items(0).FindControl("TextBox1"), TextBox).Text 

You can read our help documentation for more details.

Regards,
Rosi
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
appdev
Top achievements
Rank 1
answered on 07 Oct 2008, 03:35 PM
thank you that helped but if you do have itemtemplate and another telerik panel item in there you must have somethign like

 

 

DirectCast

(RadPanelBar1.FindItemByValue("Name").FindControl("DropdownlistName"), DropDownList).SelectedItem.ToString

 

 

 

 

Tags
PanelBar
Asked by
appdev
Top achievements
Rank 1
Answers by
Rosi
Telerik team
appdev
Top achievements
Rank 1
Share this question
or