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

[Solved] Rad Text box

4 Answers 146 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Parodist
Top achievements
Rank 1
Parodist asked on 02 Jun 2009, 01:59 PM
Hi,

Can we use the RadText box to overlap in the same position?If it can,how can I make it?

4 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 02 Jun 2009, 02:08 PM
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.
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

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:
 
<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; 
Feel free to share the comments.

-Shinu.
0
Dimo
Telerik team
answered on 05 Jun 2009, 11:27 AM
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.
Tags
General Discussions
Asked by
Parodist
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Parodist
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or