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

RangeSliderFor and RangeAttribute

0 Answers 131 Views
Slider
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 02 Jul 2012, 09:57 AM
Does RangeSliderFor actually work with the Range data annotation?
When I use it there is an extra value added to ModelState. Say I bind RangeSlider to a 2 item array property of type Double called "Numbers", in the controller, in ModelState I see 3 separate keys in ModelState:

Numbers[0]
Numbers[1]
Numbers

Although the slider values are valid, key 3 (Numbers) has an error against it. Why does this value appear and how do I get rid of it?

No answers yet. Maybe you can help?

Tags
Slider
Asked by
Matt
Top achievements
Rank 1
Share this question
or