Problem with radnumerictextbox

4 posts, 0 answers
  1. Maveric
    Maveric avatar
    39 posts
    Member since:
    Apr 2007

    Posted 24 Jan 2009 Link to this post

    Hi,

    I have a RadnumericTextbox inside a panel.
    This panel was disable by default and so Radnumerictextbox was disable
    I have a button to enable the panel so the user can modify data.
    With the new version 2008.3 1314 my radnumerictextbox is not enable when i make
    the panel enable. before it works perfectly !!
    Anyone have a idea ?

    Eric
  2. Daniel
    Admin
    Daniel avatar
    4946 posts

    Posted 26 Jan 2009 Link to this post

    Hello Maveric,

    I tried to reproduce the issue but without avail. I attached my test project to this post. Thus you can test it locally and let me know whether it's working as expected.

    Regards,
    Daniel
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Markus Ruf
    Markus Ruf avatar
    29 posts
    Member since:
    Dec 2008

    Posted 27 Mar 2009 Link to this post

    Hi Daniel

    I run into the same problem, with Version 2009.1.311.35.

    Enable/disable the panel enabled/disables the RadNumericTextBox as well .... but only as long the property MinValue="<n>" is not set. If this property is set, the disable works, but not the enable.

    My problem occured within a AJAX environment, the button-click is handled by the RadAJAXManager.

    Is there something else to set when using MinValue?

    Here are the sample codes:
    ....aspx:
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="testerli.aspx.cs" Inherits="testerli" %> 
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
     
    <html xmlns="http://www.w3.org/1999/xhtml">  
    <head runat="server">  
        <title></title>  
    </head> 
    <body> 
        <form id="form1" runat="server">  
          <telerik:RadScriptManager ID="RadScriptManager1" Runat="server"></telerik:RadScriptManager> 
          <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
            <AjaxSettings> 
              <telerik:AjaxSetting AjaxControlID="go">  
                <UpdatedControls> 
                  <telerik:AjaxUpdatedControl ControlID="PanelAuswahl" LoadingPanelID="none" /> 
                </UpdatedControls> 
              </telerik:AjaxSetting> 
            </AjaxSettings> 
          </telerik:RadAjaxManager> 
          <asp:Button ID="go" runat="server" Text="switch enable state" /><br /><br /> 
          <telerik:RadSplitter ID="RadSplitterBereich" runat="server" Orientation="Horizontal" LiveResize="true" PanesBorderSize="0" VisibleDuringInit="false" ResizeMode="Proportional" BorderWidth="0" Width="400px" Height="100px">  
            <telerik:RadPane ID="RadPaneAuswahl" runat="server" Width="100%" Scrolling="Y" BorderWidth="0">  
              <asp:Panel ID="PanelAuswahl" runat="server" Height="100%" Width="100%">  
                <table border="0" cellpadding="0" cellspacing="0">  
                  <tr> 
                    <td colspan="5" align="left" valign="middle"><img src="admin/images/spacer.gif" alt="" width="1" height="10" /></td>  
                  </tr> 
                  <tr> 
                    <td align="left" valign="middle"><img src="admin/images/spacer.gif" alt="" width="1" height="1" /></td>  
                    <td align="left" valign="middle"><asp:Label ID="lblBez" runat="server">Field 1</asp:Label></td>  
                    <td align="left" valign="middle"><img src="admin/images/spacer.gif" alt="" width="5" height="1" /></td>  
                    <td align="left" valign="middle"><telerik:RadTextBox ID="txtBez" runat="server" MaxLength="100" Width="250px" ReadOnly="false"></telerik:RadTextBox></td>  
                    <td align="left" valign="middle"><img src="admin/images/spacer.gif" alt="" width="1" height="1" /></td>  
                  </tr> 
                  <tr> 
                    <td align="left" valign="middle"><img src="admin/images/spacer.gif" alt="" width="1" height="1" /></td>  
                    <td align="left" valign="middle"><asp:Label ID="Label1" runat="server">Field 2</asp:Label></td>  
                    <td align="left" valign="middle"><img src="admin/images/spacer.gif" alt="" width="1" height="1" /></td>  
                    <td align="left" valign="middle">  
                      <telerik:RadNumericTextBox   
                        ID="txtSort"   
                        runat="server"   
                        MinValue="1"   
                        DataType="System.Int32"   
                        NumberFormat-DecimalDigits="0"   
                        ShowSpinButtons="true"   
                        ButtonsPosition="Right">  
                      </telerik:RadNumericTextBox> 
                    </td> 
                    <td align="left" valign="middle"><img src="admin/images/spacer.gif" alt="" width="1" height="1" /></td>  
                  </tr> 
                  <tr> 
                    <td align="left" valign="middle"><img src="admin/images/spacer.gif" alt="" width="1" height="1" /></td>  
                    <td align="left" valign="middle"><asp:Label ID="Label2" runat="server">Field 3</asp:Label></td>  
                    <td align="left" valign="middle"><img src="admin/images/spacer.gif" alt="" width="1" height="1" /></td>  
                    <td align="left" valign="middle">  
                      <telerik:RadNumericTextBox   
                        ID="txtSort2"   
                        runat="server"   
                        DataType="System.Int32"   
                        NumberFormat-DecimalDigits="0"   
                        ShowSpinButtons="true"   
                        ButtonsPosition="Right">  
                      </telerik:RadNumericTextBox> 
                    </td> 
                    <td colspan="5" align="left" valign="middle"><img src="admin/images/spacer.gif" alt="" width="1" height="1" /></td>  
                  </tr> 
                  <tr> 
                    <td colspan="5" align="left" valign="middle"><img src="admin/images/spacer.gif" alt="" width="1" height="10" /></td>  
                  </tr> 
                </table> 
              </asp:Panel> 
            </telerik:RadPane> 
          </telerik:RadSplitter> 
        </form> 
    </body> 
    </html> 
     

    ... and the aspx.cs:
    using System;  
    using System.Web;  
    using System.Web.UI;  
    using System.Web.UI.WebControls;  
    using Telerik.Web.UI;  
     
    public partial class testerli : System.Web.UI.Page  
    {  
      protected const string skin = "Office2007";  
     
      protected void Page_Load(object sender, EventArgs e)  
      {  
        if (!IsPostBack)  
        {  
          txtSort.Skin = skin;  
          txtSort2.Skin = skin;  
          txtBez.Skin = skin;  
            
          txtSort.Value = 15;  
          txtSort2.Value = 15;  
          PanelAuswahl.Enabled = true;  
        }  
        go.Click += new EventHandler(go_Click);  
      }  
     
      void go_Click(object sender, EventArgs e)  
      {  
     
        PanelAuswahl.Enabled = !PanelAuswahl.Enabled;  
     
        txtSort.Value = DateTime.Now.Millisecond + 15;  
        txtSort2.Value = DateTime.Now.Millisecond + 15;  
     
      }  
    }  
     

    TIA
    Markus
  5. Daniel
    Admin
    Daniel avatar
    4946 posts

    Posted 27 Mar 2009 Link to this post

    Hello Markus,

    We are aware of this behavior and I would like to let you know that it is considered as browser-specific. To avoid this you can enable it manually on client-side.

    Best regards,
    Daniel
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Back to Top