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

How to change a control between a combobox and a textbox depending on where you call the form?

4 Answers 450 Views
ComboBox and ListBox (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ana
Top achievements
Rank 1
Ana asked on 05 May 2009, 04:13 PM
Hello!!!

I'm using the telerik library, 2008 version. I want to have a unique form that is called from two different options in the menu and depending on the option you select in should show a label and a combobox or a label and a textbox. The label is easy to change, but how do i do to change between the combobox and the textbox? I tried put it over and set the visible attribute to false but it's not working because i have everything inside a table layout and it only lets me put one control in every cell.

Do you have any ideas? Thanks!!

Ana Mora

4 Answers, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 06 May 2009, 01:13 PM
Hello Ana,

Thank you for contacting us. You can create a base form and then derive that form twice.

Sincerely yours,
Nick
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Princy
Top achievements
Rank 2
answered on 06 May 2009, 01:16 PM
Hi,

A suggestion would be to use a panel to contain the controls . You could place the label and combo in one panel  and the other label and textbox in another panel. Hiding one panel would shift the other up. This way you dont need to individually show and hide the controls.

Please feel free to correct me.

Thanks
Princy


0
Nick
Telerik team
answered on 07 May 2009, 08:45 AM
Hi Princy,

That seems like a good solution too.

Sincerely yours,
Nick
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Ana
Top achievements
Rank 1
answered on 07 May 2009, 01:06 PM
Thank you!!! I tried both solutions and they worked for me!!

Ana Mora
Tags
ComboBox and ListBox (obsolete as of Q2 2010)
Asked by
Ana
Top achievements
Rank 1
Answers by
Nick
Telerik team
Princy
Top achievements
Rank 2
Ana
Top achievements
Rank 1
Share this question
or