Currently if the MinValue or MaxValue properties are changed on the client, on the server the numeric value is auto-corrected according to the their old value. Disabling the ViewState can help. Here is a basic example that can be used: <telerik:RadNumericTextBox runat="server" ID="rtb1" EnableViewState="false"></telerik:RadNumericTextBox> <asp:Button ID="Button1" Text="1 change max value and value with JS" OnClientClick="changeValues(); return false;" runat="server" /> <asp:Button ID="Button2" Text="2 postback" OnClick="Button2_Click" runat="server" /> <script> function changeValues() { var rtb = $find("<%=rtb1.ClientID%>"); rtb.set_maxValue(100); rtb.set_value(100); } </script> protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { rtb1.MaxValue = 20; rtb1.Value = 1; } } protected void Button2_Click(object sender, EventArgs e) { Response.Write(string.Format("currValue: {0}<br/> maxValue: {1}", rtb1.Value, rtb1.MaxValue)); }
Hi, Enabling/disabling RadTextBox in client-side does not not seem to reflect same with the corresponding button control. http://www.telerik.com/forums/radtextbox-disable-when-click-radio-button Thank you, Krishna Raja
Here is the basic code: <telerik:RadTextBox ID="RadTextBox1" runat="server" TextMode="MultiLine" Enabled="False"> </telerik:RadTextBox>
It is browser bug, and the only possible fix we could do is to it by cancel the row event/stop propagation. But in this case we will broke the templates of the calendar, and they will not work anymore. Also could lead to some problems with the pickers and all places where the calendar is inside scrollable/drag-drag drop/ containers and the event need to bubble. So this will stay as limitation. In case the calendar is not used inside containers that have click interactions, this workaround is suggested for solving the issue: var cal = Telerik.Web.UI.Calendar.CalendarView.prototype; cal._och = cal._onClickHandler; cal._onClickHandler = function (ev) { this._och(ev); $telerik.cancelRawEvent(ev); }
If Czech keyboard layout is used it is not possible to enter any numeric value in the control.
Using RadNumericTextBox in a mobile website doesn't pop up numeric keyboard in iPad. We're developing a website where the user has to enter a lot of numeric information and it has to choose the numeric pad each time it enters a new numeric field. I know that using RadTextBox and Inputtype solves this problem, but I mainly use RadNumericTextBox because it allows to specified validation like min and max values to each field. Our sales team solution is featured to be use in mobile devices thanks to the MetroTouch theme but this behaviour with numeric fields has got many negative feedbacks of our mobile users. Thanks in advanced Roberto
Repoduction steps Alternative 1 1) Browse to http://demos.telerik.com/aspnet-ajax/input/examples/overview/defaultcs.aspx 2) Click on Phone field -> whole field gets selected 3) Enter 'a' -> One time red flashing border and caret moves 1 position 4) Press 'a' again -> One time red flashing border and caret does not move Alternative 2 1) Browse to http://demos.telerik.com/aspnet-ajax/input/examples/radmaskedtextbox/firstlook/defaultcs.aspx 2) Click on IP address field -> whole field gets selected 3) Enter 'a' -> Caret moves 1 position, no one time flash of border 4) Press 'a' again -> One time red flashing border and caret does not move Expected behaviour at step 3 in both cases: One time red flashing border and caret should be at first position
The RadTextBox (and other input controls as appropriate) should have an aspx property to automatically trim leading & trailing whitespace from user input. This will help ensure that good quality data is passed to the database. The only way this can currently be done is to custom code "mytextbox.Text.Trim();" for every control on the page, before the property is sent to the database.
i use RequiredFieldValidator to validate radtextbox,SetFocusOnError="true" telerik version:2012Q3 first ,enter " ",validate event fire, display “notnull” sencond,enter “123” ,radtextbox not set value,validate event not fire asp.net textbox is ok code: <telerik:RadTextBox ID="txtAppId" runat="server" Width="300" AutoPostBack="false"> </telerik:RadTextBox> <%--<asp:TextBox ID="txtAppId" runat="server" Width="300" AutoPostBack="false"> </asp:TextBox>--%> <asp:RequiredFieldValidator ID="TextBoxRequiredFieldValidator" runat="server" Display="Dynamic" ControlToValidate="txtAppId" Text="NOT NULL" ErrorMessage="NOT NULL" SetFocusOnError="true"> </asp:RequiredFieldValidator>
RadInputManager add property InputType