More in this section

Forums / General Discussions / no properties in user control

no properties in user control

4 posts, 0 answered
  1. gilad
    gilad avatar
    9 posts
    Registered:
    16 Jan 2011
    26 Jan 2011
    Link to this post
    hi

    when adding a new user control ascx to the toolbox using the admin menu ( not the config file). my public properites arenot showing when editing the control.
    is there a special procedure i"m missing ?
    tried

    public

     

     

    virtual int NewsLimit { get { return this.newsLimit; } set { this.newsLimit = value; } } private int newsLimit = 8;

    and also

     

     

     

    private string _ParentFolderPath;
    public string ParentFolderPath{
    get

     

     

     

     

     

    {

     

     

    return _ParentFolderPath;

     

    }

     

     

    set

     

     

     

     

     

    {

    _ParentFolderPath =

     

    value;

     

    }

    }

  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    28 Jan 2011
    Link to this post
    Hi gilad,

    Thank you for using our services.

    Can you please try marking those properties with the [Browsable(true)] attribute?
    Greetings,
    Radoslav Georgiev
    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. gilad
    gilad avatar
    9 posts
    Registered:
    16 Jan 2011
    02 Feb 2011
    Link to this post
    hi
    after setting the attribute the property was shown in the edit mode.
    i understand it's a problem from my installation? 
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    05 Feb 2011
    Link to this post
    Hi gilad,

    This is not a problem with your installation. This is how you should mark properties which should be visible in the control editor.

    Greetings,
    Radoslav Georgiev
    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
4 posts, 0 answered