Radwizard and Tabbedcontrols with same functionality and ui controls

1 Answer 54 Views
Panel TabbedForm Wizard
Adriana Lorena
Top achievements
Rank 1
Adriana Lorena asked on 15 Jul 2022, 03:42 PM

Hello everyone,

Can you please give me some advice? I want to migrate code to Telerik components; there is a class(form) thas has all ui components (textboxes, buttons, etc.) and functionality.

I need to give the user the ability to choose between a radwizard and a tabbedcontrol. But these two need to share the same functionality and ui components. because we don't want to repeat code. We've tried usercontrols, but the code that provides the functionality is so scrambled and depends on data and ui components from differect user controls?

Is there another way to do this? Maybe place the radwizard and tabbed form in a panel?

Thanks in advance,

Adriana

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 19 Jul 2022, 09:36 AM

Hi Adriana Lorena,

Thank you for your interest in our UI for WinForms components.

The approach here is to use UserControls. This way you can reduce code duplication as much as possible. RadTabbedForm and RadWizard share similar navigation. On every tab (RadTabbedForm) or page (RadWizard), you can place different UserControl. This way the logic will stay inside the UserControl you won't need to write down the same code for both controls. I am not familiar with your implementation and what you mean by "scrambled and depends on data and ui components from differect user controls" . You could share some more details regarding how the logic depends on the different UserControls. Still, the way to reduce code duplication will be using UserControls.

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.

Adriana Lorena
Top achievements
Rank 1
commented on 22 Jul 2022, 02:53 PM

I got it. Thank you very much, Dinko.

Kind regards,

Adriana

Tags
Panel TabbedForm Wizard
Asked by
Adriana Lorena
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or