Pass parameters to a webcontrol inside a dock

2 posts, 0 answers
  1. Andy Ho
    Andy Ho avatar
    41 posts
    Member since:
    May 2010

    Posted 14 May 2010 Link to this post

    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.
  2. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 17 May 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top