Update Usercontrol from Usercontrol

4 posts, 0 answers
  1. Scott Marx
    Scott Marx avatar
    38 posts
    Member since:
    Apr 2010

    Posted 02 Feb 2011 Link to this post

    I am having trouble updating a Control within a UserControl from another UserControl.

    Layout;

    MasterPage
    -Page.aspx
        -ASP:Panel
            -RadPanelBar
                -Items
                    -RadPanelItem
                        -UserControl1
                            -RadGrid
                                -Button in CommandItemTemplate (When button command completes needs to update controls within UserControl2
                -Items
                    -RadPanelItem
                        -UserControl2
                            -ASP:Panel
                                -ASP:Label (this is the control that needs to be updated.)

    I have tried to find the control with;

    UserControl uc = (UserControl)Page.FindControl("UserControl1"); But it comes back with a null reference.

    Any suggestion or pointers would be great.
  2. Pavlina
    Admin
    Pavlina avatar
    6187 posts

    Posted 03 Feb 2011 Link to this post

    Hello Scott Marx,

    Please refer to the following help article, which elaborates on this subject, for more information about how to achieve your goal:
    MasterPages: initiating requests from one ContentPlaceHolder and loading/updating controls in another

    I hope this gets you started properly.

    Greetings,
    Pavlina
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  3. Scott Marx
    Scott Marx avatar
    38 posts
    Member since:
    Apr 2010

    Posted 03 Feb 2011 Link to this post

    I have tried that, but when trying to use the FindControl I get a null value.

    Scott
  4. Pavlina
    Admin
    Pavlina avatar
    6187 posts

    Posted 07 Feb 2011 Link to this post

    Hello Scott,

    At this point in order to progress in the resolution of this matter it will be best if you open a formal support ticket and send us a sample where we could replicate the described behavior. Thus we will be able to debug it locally and get to the source of the issue.

    Kind regards,
    Pavlina
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Back to Top