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

Pass parameters to a webcontrol inside a dock

1 Answer 41 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Andy Ho
Top achievements
Rank 1
Andy Ho asked on 14 May 2010, 06:59 AM
Hi,

I created a raddock programmatically and then use the LoadWidget routine to add a Web user control to it. It works well but how can I pass parameters  to of the web user control? 

Thanks.

1 Answer, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 17 May 2010, 11:56 AM
Hi Andy,

I believe the easiest way to pass values from/to a user control loaded within a page, is by creating a custom property of the user control, and setting/getting its value. For your convenience I implemented this approach, and attached the application to the thread. There are three buttons. One sets the value from the user control, and the other one from the page. The third displays the current value in the property.

Best wishes,
Pero
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Dock
Asked by
Andy Ho
Top achievements
Rank 1
Answers by
Pero
Telerik team
Share this question
or