RangeSliderFor and RangeAttribute

1 posts, 0 answers
  1. Matt
    Matt avatar
    1 posts
    Member since:
    Jul 2012

    Posted 02 Jul 2012 Link to this post

    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:


    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?
Back to Top