Wizard to Generate UI Object

10 posts, 0 answers
  1. lprada
    lprada avatar
    15 posts
    Member since:
    Apr 2007

    Posted 07 May 2007 Link to this post

    I have aproject that I need to add a los of UI object in runtime, It will be great if I can create de object in Desing and click a button and get the code to create a method that create de object like the one I am Seeing in desing view.
  2. Dimitar Kapitanov
    Admin
    Dimitar Kapitanov avatar
    632 posts

    Posted 08 May 2007 Link to this post

    Hi Leonardo Prada,
    You can put your logic and controls inside UserControls, and in your wizard you can instantiate directly the UserControls required for the current step in the wizard.

    Sincerely yours,
    Dimitar Kapitanov
    the telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
  4. lprada
    lprada avatar
    15 posts
    Member since:
    Apr 2007

    Posted 08 May 2007 Link to this post

    How do I create  a User Control with a chunk and button on Design Time?
  5. Dimitar Kapitanov
    Admin
    Dimitar Kapitanov avatar
    632 posts

    Posted 08 May 2007 Link to this post

    Hello Leonardo Prada,
    We are not sure we understand your request, please tell us in more details your requirements.
    We will be glad to assist you further.

    Kind regards,
    Dimitar Kapitanov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. lprada
    lprada avatar
    15 posts
    Member since:
    Apr 2007

    Posted 08 May 2007 Link to this post

    I speak spanish so I will try to explain it the best I can:

    I have a project that I need o have a chunk "Products" and a lot of button in it. The problem I have is that the user can select in wich tab to show it  and the buttons are dinamic create at runtime so I need to creak the chunk in runtime. I know rad control can be create at runtime but what I need is to create a method to return the chunk. It will be great if you can select chunk un design and click a button to have a method code to create the chunk.

    If you can create a UserControl that only is a chunk it will be great too.
  7. Jordan
    Admin
    Jordan avatar
    547 posts

    Posted 09 May 2007 Link to this post

    Hi Leonardo,

    Unfortunately, what you want is currently impossible in design time.

    You have two choices:
    1. Create the chunk in design time and then hide/collapse it if you do not want it to be visible, and reparent it to another tab if you want it in another tab.
    2. Create a method that creates the chunk with all the buttons that you need in it and then use it to create the chunk in run time.

    All the best,
    Jordan
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  8. lprada
    lprada avatar
    15 posts
    Member since:
    Apr 2007

    Posted 09 May 2007 Link to this post

    Ok, It will great in following version there is button to get the code method
  9. Dimitar Kapitanov
    Admin
    Dimitar Kapitanov avatar
    632 posts

    Posted 10 May 2007 Link to this post

    Hello Leonardo Prada,
    We will investigate and evaluate the reasons and possible implementation that will help scenarios like yours in the future. But we cannot guarantee when this feature request will be addressed.

    Best wishes,
    Dimitar Kapitanov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  10. lprada
    lprada avatar
    15 posts
    Member since:
    Apr 2007

    Posted 10 May 2007 Link to this post

    Hi, iere a way to clone a chunk object? beacause I am thinking I having a private usercontrol or form and do all design work there. Tehn have a mehtod to get the chunk I need, but what I realy need is a copy of that chunk and not a original.
  11. Dimitar Kapitanov
    Admin
    Dimitar Kapitanov avatar
    632 posts

    Posted 11 May 2007 Link to this post

    Hello Leonardo Prada,
    There is no general approach for cloning RadElements at the moment. We will research this topic. Tell us if we can help further with your problem. 

    Regards,
    Dimitar Kapitanov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top
UI for WinForms is Visual Studio 2017 Ready