Page view counter

WebControl Properties

Last post 06-14-2005 7:13 PM by superconsultant. 4 replies.

Sort Posts:

  • Idea [Idea] WebControl Properties

    06-13-2005, 3:11 PM

    Does anyone know how to present WebControl Properties in a TreeView style. For example: if you have ASP's TextBox control and open its properties in property's panel, the Font property there has '+' sign in front of it. If you click on '+' sign it will display underneath all Font related properties such as : Bold, Italic, Name etc.

    So I am looking for cod samples and explanations how can I create related properties in such style.

    Any help is appreciated.

  • Re: WebControl Properties

    06-13-2005, 8:23 PM
    • Loading...
    • Raterus
    • Joined on 12-15-2003, 3:41 PM
    • North Carolina, USA
    • Posts 1,068
    • Points 5,230
    Look at the .Net reflector, you can check out the code of the framework.  It should tell you all you need to know how to do this.  Just look up the class System.Web.UI.WebControls.Textbox
    http://www.aisto.com/roeder/dotnet/

    Ask and it will be given to you; seek and you will find; knock and the door will be opened to you. Luke 11:9
  • Embarrassed [:$] Re: WebControl Properties

    06-14-2005, 4:40 PM
    Good sugestion, and I did look at the System.Web.UI.WebControls.Textbox and others, but it references way to many objects and their properties for me to follow their pattern and sequence.

    Thanks anyway.

    Reagrds,
    Dimitry
  • Re: WebControl Properties

    06-14-2005, 5:07 PM
    • Loading...
    • Raterus
    • Joined on 12-15-2003, 3:41 PM
    • North Carolina, USA
    • Posts 1,068
    • Points 5,230
    I looked at it myself, and it looks related to the attribute WebCategory("Some Group")

    I couldn't find much documentation on this, but you can see an example of this using the reflector.


    Ask and it will be given to you; seek and you will find; knock and the door will be opened to you. Luke 11:9
  • Big Smile [:D] Re: WebControl Properties

    06-14-2005, 7:13 PM
    I got it, all I had to do is to add ExpandableObjectConverter tag in front of the property that is of type class:
    like this code bellow

    <CODE>
    <TypeConverter(GetType(ExpandableObjectConverter))> _
    Public ReadOnly Property MTest() As MyTest
            Get
                   Return _myTest
            End Get
    End Property
    </CODE>

    Appreciate your input.

    Regards,
    Dimitry
Page 1 of 1 (5 items)