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

Spin Buttons on numeric inputs managed by the input manager

2 Answers 40 Views
Input
This is a migrated thread and some comments may be shown as answers.
towpse
Top achievements
Rank 2
towpse asked on 02 Jun 2010, 07:17 PM
I have a page with a variable number of inputs on screen.
I create them as input types with a cssClass called numeric.
Once all the inputs are created I load them into the input manager

        elements = $('input.numeric', someContextDiv); 
        var numericSettings = $find('RadInputManager').get_inputSettings('NumericSettings'); 
        generateInputIds(elements); 
        for (var idx = 0; idx < elements.length; ++idx) { 
            numericSettings.addTargetInput(elements[idx].id); 
        } 


Is there a way to now dynamically enable the SpinButtons on these inputs?
I'd like to set ShowSpinButtons = true & ButtonsPosition="Right"

cheers

2 Answers, 1 is accepted

Sort by
0
towpse
Top achievements
Rank 2
answered on 07 Jun 2010, 03:02 PM
Is there any way to alter numeric input properties for each input control managed by an input manager after it's been loaded with html inputs using their ids?

I need to dynamically set min and max values and I'd like to set the spin buttons property on.

I should be able to set the Increment Properties on my numeric text boxes after I load them into the Input Manager, no?
The input manager doesn't let me set the Increment settings, which would be nice.

The input manager does have min and max but in my case I don't want all my numeric inputs to have the same min and mix.

Regards.
0
Dimo
Telerik team
answered on 10 Jun 2010, 02:45 PM
Hi Matt,

RadInputManager does not feature spin buttons or keystroke value incrementation, sorry. This functionality is only supported by RadNumericTextBox.

If you want to have different textboxes with different min / max value constraints, you have to add them to different input settings. All number and style settings are managed per inputmanager setting, not per textbox.

$find('RadInputManager').get_inputSettings('NumericSettings')._minValue = ........ ;
$find('RadInputManager').get_inputSettings('NumericSettings')._maxValue = ....... ;

Sincerely yours,
Dimo
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Input
Asked by
towpse
Top achievements
Rank 2
Answers by
towpse
Top achievements
Rank 2
Dimo
Telerik team
Share this question
or