1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Exposing a control

Exposing a control

2 posts, 0 answered
  1. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    02 Jul 2010
    Link to this post
    Anyone know how to expose a control loaded from a template to the backend Advanced Tab?  I want drill-downability on all the properties

    Here's how I reference it from the template:
    protected virtual RadTextBpx radTB {
        get {
            return base.Container.GetControl<RadTextBox>("radTB", true);
        }
    }

    ...but from there how do I expose that as a public property?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    02 Jul 2010
    Link to this post
    Hello Steve,

    Below is a sample code that illustrates how to expose this property.

    public RadTextBox TextBoxControl
      {
          get
          {
              return this.radTb;
          }
      }
     
    protected virtual RadTextBox radTb
      {
          get { return base.Container.GetControl<RadTextBox>("radTB", true); }
      }


    Greetings,
    Ivan Dimitrov
    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
2 posts, 0 answered