[Browsable(false)] attribute

2 posts, 0 answers
  1. Ariel Vargas
    Ariel Vargas avatar
    1 posts
    Member since:
    Dec 2005

    Posted 29 Sep 2016 Link to this post

    We've a custom object with several properties. When implementing the RadDataEntry control for visualizing details of each record displayed in GridView, we want to hide some properties. We implemented the [Browsable(false)] attribute and that hides the property in the RadDataEntry as expected, however it also impacts in the Grid. Is there a way to display a property in the Grid and hide it in the DataEntry?


  2. Dimitar
    Dimitar avatar
    2951 posts

    Posted 30 Sep 2016 Link to this post

    Hello Ariel,

    You can use the EditorInitializing event instead of the attribute:
    private void RadDataEntry1_EditorInitializing(object sender, Telerik.WinControls.UI.EditorInitializingEventArgs e)
        if (e.Property.Name == "LastName")
            e.Cancel = true;

    I hope this will be useful. Let me know if you have additional questions.

    Telerik by Progress
    Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
Back to Top