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.
9 Answers, 1 is accepted
0
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
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
0
lprada
Top achievements
Rank 2
answered on 08 May 2007, 12:25 PM
How do I create a User Control with a chunk and button on Design Time?
0
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
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
0
lprada
Top achievements
Rank 2
answered on 08 May 2007, 04:09 PM
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.
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.
0
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
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
0
lprada
Top achievements
Rank 2
answered on 09 May 2007, 05:26 PM
Ok, It will great in following version there is button to get the code method
0
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
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
0
lprada
Top achievements
Rank 2
answered on 10 May 2007, 12:16 PM
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.
0
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
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