updating radcombox usercontrols

2 posts, 0 answers
  1. doug
    doug avatar
    25 posts
    Member since:
    Jan 2011

    Posted 23 Oct 2014 Link to this post

    I have two usercontrols in .aspx page and has a telerik panel.  Everything seems to be working fine even passing values between the diff. usercontrols.  the problem I'm having is updating screen values in usercontrol2 when something changes in usercontrol1.  (in code behind I'm seeing the values fine, but the screen controls don't reflect any changes)

    So how can I refresh usercontrol2 to see the updates?  example: _lblLocationId in usercontrol2 gets a new value from usercontrol1's location change.  everything updates and I see the change in debug, but the page doesn't change to reflect the new locationId.

    Dim ucContacts As ucContacts = CType(pb.Items(2).FindControl("ucContacts"), ucContacts)
    Dim _lblLocationId As Label = ucContacts.Contacts_lblLocationId
    _lblLocationId.Text = ddlLocations.SelectedValue

    thanks
    Doug
  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 28 Oct 2014 Link to this post

    Hello Doug,

    As far as I understand you have a telerik:RadAjaxPanel on the page along with the user controls. As long as both user controls are wrapped in the telerik:RadAjaxPanel they should update each other as expected.

    Please find attached a very similar scenario - each user control contains a RadTextBox. Clicking on the button will update the second text box with the text typed in the first text box.


    Regards,
    Boyan Dimitrov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top