RadPanel border visibility

1 Answer 28 Views
New Product Suggestions Panel
Toby
Top achievements
Rank 3
Iron
Iron
Toby asked on 01 Jul 2022, 09:29 AM

Would it be possible in the next release to expose the panel border visibility at design time in the properties window, rather than having to navigate through "Edit UI Elements" (or via code). I have a lot of panerls where I don't want to see the border at run time but do need to see it sometimes at design time.

 

Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Dinko | Tech Support Engineer
Telerik team
answered on 05 Jul 2022, 11:04 AM

Hi Toby,

You are right that you need to use the Edit UI Elements window. What I can suggest instead is to create a custom class that derives from RadPanel. Inside you can expose your own property which can get/set the Visibility property of the BorderPrimitive. Then you can replace the panels in your application with the custom ones. This way the custom property will appear in the Properties Window.

public class CustomPanel : RadPanel
{
    public override string ThemeClassName
    {
        get
        {
            return typeof(RadPanel).FullName;
        }
    }
    [DefaultValue(ElementVisibility.Visible)]
    public ElementVisibility BoderVisibility
    {
        get
        {
            return this.PanelElement.PanelBorder.Visibility;
        }
        set
        {
            this.PanelElement.PanelBorder.Visibility = value;
        }

    }
}

Regards,
Dinko
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
New Product Suggestions Panel
Asked by
Toby
Top achievements
Rank 3
Iron
Iron
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or