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

[Solved] RadNumericTextBox don't works with RadAjaxPanel

1 Answer 102 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
saActive
Top achievements
Rank 1
saActive asked on 02 Jan 2008, 09:08 AM
I have a page where a RadAjaxPanel1, Button1, RadNumericTextBox1

button  and textbox are in radAjaxPanel.

<asp:ScriptManager ID="ScriptManager1" runat="server"
</asp:ScriptManager> 
        <br /> 
<radA:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px" Width="300px"
<asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" Width="227px"</asp:Button> 
<br /> 
 
<telerik:RadNumericTextBox ID="RadNumericTextBox1" runat="server"
</telerik:RadNumericTextBox></radA:RadAjaxPanel> 


now I don't want to see RadNumericTextBox1 when page load first time.
So I have write down visible=false in page load event.

protected void Page_Load(object sender, EventArgs e) 
    { 
        RadNumericTextBox1.Visible = false
    } 

and when user click on the button I want to show that textbox.
using following code.

 protected void Button1_Click(object sender, EventArgs e) 
    { 
        if(RadNumericTextBox1.Visible==false) 
            RadNumericTextBox1.Visible = true
        else 
            RadNumericTextBox1.Visible = false
    } 

RadNumericTextBox1 visible true/ false works but

I can not write down just numeric value but I can also write down alphabets in that RadNumericTextBox1!!!

Why?

and once i remove page_load event's line (RadNumericTextBox1.Visible = false;) It started to work perfect!!!

Why?

I am using "prometheus control Q2".

1 Answer, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 04 Jan 2008, 09:38 AM
Hi saActive,

This scenario works fine with the latest Prometheus version. I have only changed RadAjaxPanel prefixes to use Prometheus RadAjax as well. Would you please check whether this resolves the problem on your side as well?

Best wishes,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Ajax
Asked by
saActive
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Share this question
or