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

Change the Text property of RadPanelItem

3 Answers 134 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Amitkumar
Top achievements
Rank 1
Amitkumar asked on 13 Nov 2009, 07:13 AM
Hi,

I am using RadPanelBar with multiple RadPanelItem in aspx, and within a RadPanelItem i am loading user control programmatically, after successfully loaded user control, that user control have a one control that is button and two textboxes(i.e. txtFirstName, and txtLastName). when i click on that button i access RadPanel through following code, and try to change the Text property, but it will not reflect or change(as per the text value of txtFirstName and txtLastName) why?

Telerik.Web.UI.RadPanelBar rpbUser = this.Parent.Parent.Parent as Telerik.Web.UI.RadPanelBar;
if (rpbUser != null)
{
       rpbUser.Items[1].Text = "Contact Info" + " : " + txtFirstName + " " + txtLastName;
}

Thanks & Regards
Dharmesh


3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 18 Nov 2009, 02:39 PM
Hi Amit,

I tried to reproduce this issue but to no avail, please check the attached sample project. What is different in your case, are you using RadAjaxManager or RadAjaxPanel?

Greetings,
Yana
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.
0
Amitkumar
Top achievements
Rank 1
answered on 19 Nov 2009, 04:51 AM
Yes, I am using RadAjaxPanel, please provide me a sample using RadAjaxPaenl.


Thanks & Regard,
Amit
0
Accepted
Paul
Telerik team
answered on 19 Nov 2009, 12:14 PM
Hello amit prajapati,

Actually, there's no difference if you are using RadAjaxPanel. Here's a new sample that show the propert work of the control. Let us know what's different in your case.

Best wishes,
Paul
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.
Tags
PanelBar
Asked by
Amitkumar
Top achievements
Rank 1
Answers by
Yana
Telerik team
Amitkumar
Top achievements
Rank 1
Paul
Telerik team
Share this question
or