Change the Text property of RadPanelItem

4 posts, 1 answers
  1. Amitkumar
    Amitkumar avatar
    66 posts
    Member since:
    Aug 2009

    Posted 13 Nov 2009 Link to this post

    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


  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 18 Nov 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Amitkumar
    Amitkumar avatar
    66 posts
    Member since:
    Aug 2009

    Posted 18 Nov 2009 Link to this post

    Yes, I am using RadAjaxPanel, please provide me a sample using RadAjaxPaenl.


    Thanks & Regard,
    Amit
  5. Answer
    Paul
    Admin
    Paul avatar
    4281 posts

    Posted 19 Nov 2009 Link to this post

    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.
Back to Top