I am trying to set the spin editor to only allow entry via the Arrow keys but when I set the readonly property to true I can not change the value in the spinControl at all. Is the the expected behavior?
Thank you.
3 Answers, 1 is accepted
0
Stefan
Telerik team
answered on 11 Mar 2015, 06:53 AM
Hi Stephen,
Thank you for writing.
This is the expected and desired behavior. You can hook up the up/down keys, by using the KeyDown event:
I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.
Regards,
Stefan
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Thank you that helps.
Now if I allow mouse clicks on the buttons can I detect if the up or the down button was pressed?
The mouse event args did not seem to have this information.
Thank you.
0
Stefan
Telerik team
answered on 12 Mar 2015, 07:01 AM
Hello,
You can hook up straight to the button's Click events:
radSpinEditor1.SpinElement.ButtonDown.Click
radSpinEditor1.SpinElement.ButtonUp.Click
I hope that you find this information useful.
Regards,
Stefan
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.