This is a migrated thread and some comments may be shown as answers.

RadTabbedForm Elements

1 Answer 122 Views
Form
This is a migrated thread and some comments may be shown as answers.
Robin
Top achievements
Rank 1
Robin asked on 11 Nov 2020, 08:12 AM
How can i add Toogle Button Element in design form?

1 Answer, 1 is accepted

Sort by
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 11 Nov 2020, 09:12 AM

Hello, Robin,  

When you type text directly in the designer, a RadButtonElement is added by default:

Other predefined elements can be added using the Collection Editor of the Left/RightItems collections of the RadTabbedFormControl:

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Fernando
Top achievements
Rank 1
commented on 16 Feb 2022, 06:13 PM

Hello in case I want the element be not shown by default but instead user must use the menu to show it how can do it?

i put visibility ascollapsed but is still shown as checked so has to be click 3 tiems first time to be shown.

Dess | Tech Support Engineer, Principal
Telerik team
commented on 18 Feb 2022, 12:49 PM

Hello, Fernando,

If you want the added elements not to be displayed initially, it is a good option to manage the Visibility property: 

    public partial class RadTabbedForm1 : Telerik.WinControls.UI.RadTabbedForm
    {
        public RadTabbedForm1()
        {
            InitializeComponent();

            this.AllowAero = false;

            this.radToggleButtonElement1.Visibility = ElementVisibility.Collapsed;
        }

        private void radButton1_Click(object sender, EventArgs e)
        {
            if (this.radToggleButtonElement1.Visibility == ElementVisibility.Collapsed)
            {
                this.radToggleButtonElement1.Visibility = ElementVisibility.Visible;
            }
            else
            {
                this.radToggleButtonElement1.Visibility = ElementVisibility.Collapsed;
            }
        }
    }

Tags
Form
Asked by
Robin
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or