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

RadSpinEditor Wrap property

3 Answers 32 Views
New Product Suggestions
This is a migrated thread and some comments may be shown as answers.
Jason Maronge
Top achievements
Rank 1
Jason Maronge asked on 15 Apr 2010, 01:37 AM
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

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 15 Apr 2010, 09:34 AM
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.
0
Jason Maronge
Top achievements
Rank 1
answered on 15 Apr 2010, 02:25 PM
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.


0
Peter
Telerik team
answered on 16 Apr 2010, 05:31 PM
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.
Tags
New Product Suggestions
Asked by
Jason Maronge
Top achievements
Rank 1
Answers by
Peter
Telerik team
Jason Maronge
Top achievements
Rank 1
Share this question
or