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

updating radcombox usercontrols

1 Answer 15 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
doug
Top achievements
Rank 2
doug asked on 23 Oct 2014, 07:46 PM
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

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 28 Oct 2014, 01:25 PM
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.

 
Tags
General Discussions
Asked by
doug
Top achievements
Rank 2
Answers by
Boyan Dimitrov
Telerik team
Share this question
or