RadSpinEditor Wrap property

4 posts, 0 answers
  1. Jason Maronge
    Jason Maronge avatar
    322 posts
    Member since:
    Jan 2005

    Posted 14 Apr 2010 Link to this post

    I would like to suggest adding a Wrap property to the SpinEditor.  Basically what it would do is, when set to True, once the MaxValue is hit, the next up button pressed should cycle to the MinValue, and vice versa.  I am actually trying to inherit the SpinEditor now but not sure it can be done. 

    Just my $0.02

    Jason
  2. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 15 Apr 2010 Link to this post

    Hi Jason Maronge,

    Thanks for the suggestion. In our next release we will include a Wrap property.

    For now you can implement this feature by yourself with inheriting the RadSpinEditor and relying on ValueChanging and ValueChanged events.
     
    Thank you again for writing.

    Best wishes,
    Peter
    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Jason Maronge
    Jason Maronge avatar
    322 posts
    Member since:
    Jan 2005

    Posted 15 Apr 2010 Link to this post

    That is good to hear.  Thanks.

    As far as creating one by inherting the RadSpinEditor.  It can be done but what needs to happen is to set your Maximum value to 1 more increment than you want.   If not then the ValueChanging event does not get raised since the Constrain method filters it first.  So if you want to increment by 15, and want the the sequence 0,15,30,45,  you will have to make your Maximum property 60, that way the ValueChaning event fires, you then can see if it is your Max and reset it to the Min.


  5. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 16 Apr 2010 Link to this post

    Hello Jason Maronge,

    Yes, you should increase or decrease Maximum and Minimum with Step. In our next release this inheritance of RadSpinEditor will be unnecessary, because we have implemented a Wrap property.

    Sincerely yours,
    Peter
    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.
Back to Top