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

changing maxvalue and invalue from codebehind,

5 Answers 89 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
Carlos
Top achievements
Rank 1
Carlos asked on 24 Jan 2017, 04:50 PM

HI all,

 

Im trying to change the maxvalue from a radnumericbox from codebehind.

the value changes depending the value of od a radcombobox, i having problem with that tried in selectindexchange and even on the radnumeric onload but nothing works any opinions how i can do this , from code behind.

 

Best Regards

5 Answers, 1 is accepted

Sort by
0
Patrick | Technical Support Engineer, Senior
Telerik team
answered on 25 Jan 2017, 04:51 PM
Hello Carlos,

Please take a look at the attached example which demonstrates a RadComboBox changing the maxValue of the RadNumericTextBox.  Please note, in order for the OnSelectedIndexChanged event to be fired, set the AutoPostBack to true.  

I hope this helps!

Regards,
Patrick
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Carlos
Top achievements
Rank 1
answered on 25 Jan 2017, 04:57 PM

Thanks, but i doesn't work i already tried that method, it does not influence, the numericbox maxvalue.

 

 

0
Patrick | Technical Support Engineer, Senior
Telerik team
answered on 26 Jan 2017, 03:27 PM
Hello Carlos,

In order to better understand your setup, please send the code of your markup and code behind.  

Also, could you please confirm the component you are using?  Is it the RadNumericTextBox for ASP.NET AJAX?

I look forward to your response.

Regards,
Patrick
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Carlos
Top achievements
Rank 1
answered on 26 Jan 2017, 03:44 PM
yes it is RadNumericTextBox for ASP.NET AJAX, its dificult to send some code to you.
0
Konstantin Dikov
Telerik team
answered on 31 Jan 2017, 01:10 PM
Hello Carlos,

Since the approach that Patrick attached works correctly, the problem might be due to the implementation that you have, so in order for us to be able to assist you any further we will need a code snippets that show the exact scenario.


Regards,
Konstantin Dikov
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
NumericTextBox
Asked by
Carlos
Top achievements
Rank 1
Answers by
Patrick | Technical Support Engineer, Senior
Telerik team
Carlos
Top achievements
Rank 1
Konstantin Dikov
Telerik team
Share this question
or