4 Answers, 1 is accepted
0
Hello Parodist,
I am afraid I didn't understand your question, please explain in more details.
Kind regards,
Dimo
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.
I am afraid I didn't understand your question, please explain in more details.
Kind regards,
Dimo
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
Parodist
Top achievements
Rank 1
answered on 03 Jun 2009, 10:38 AM
Hi,
In windows environment,we can use multiple textboxes in the same position one upon another and play hide and seek,I have been trying to place the 2 radtext boxes in the same position within the same cell but it does not hold in the same position.
Need help.
Thanking you in advance
In windows environment,we can use multiple textboxes in the same position one upon another and play hide and seek,I have been trying to place the 2 radtext boxes in the same position within the same cell but it does not hold in the same position.
Need help.
Thanking you in advance
0
Shinu
Top achievements
Rank 2
answered on 03 Jun 2009, 01:19 PM
Hi,
I guess you want to show radtextbox in same position in a table cell. You can toggle the visibility of radtextbox in order to achieve this. Here is the code that I tried.
aspx:
cs:
Feel free to share the comments.
-Shinu.
I guess you want to show radtextbox in same position in a table cell. You can toggle the visibility of radtextbox in order to achieve this. Here is the code that I tried.
aspx:
| <asp:Table ID="Table1" GridLines="Both" runat="server"> |
| <asp:TableRow runat="server" Height="50px"> |
| <asp:TableCell Width="100px"> |
| <telerik:RadTextBox ID="RadTextBox1" runat="server" Text="TextBox1"> |
| </telerik:RadTextBox> |
| <telerik:RadTextBox ID="RadTextBox2" runat="server" Text="TextBox2" Visible="false"> |
| </telerik:RadTextBox> |
| </asp:TableCell> |
| </asp:TableRow> |
| </asp:Table> |
cs:
| protected void Button1_Click(object sender, EventArgs e) |
| { |
| RadTextBox1.Visible = !RadTextBox1.Visible; |
| RadTextBox2.Visible = !RadTextBox2.Visible; |
| } |
-Shinu.
0
Hello,
Yes, one can make two RadTextBoxes overlap in the same position. There is one thing to keep in mind - RadTextBoxes have a little more complex HTML output than regular textboxes. As a result, one should not toggle the visibility of the textbox elements, but of their wrappers. Similarly, the positioning styles have to be applied to the wrappers, not the textboxes.
If you are using the latest RadControls version, there are also Javascript methods to show/hide RadTextBoxes - get_visible() and set_visible().
Sincerely yours,
Dimo
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.
Yes, one can make two RadTextBoxes overlap in the same position. There is one thing to keep in mind - RadTextBoxes have a little more complex HTML output than regular textboxes. As a result, one should not toggle the visibility of the textbox elements, but of their wrappers. Similarly, the positioning styles have to be applied to the wrappers, not the textboxes.
If you are using the latest RadControls version, there are also Javascript methods to show/hide RadTextBoxes - get_visible() and set_visible().
Sincerely yours,
Dimo
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.
