5 Answers, 1 is accepted
You can achieve the desired functionality through the client object and its private method _step():
And in the following Dojo example you can see this in action:
Hope this helps.
Yes that helps a lot.
To take it a step further, how would I do that in a grid when the custom numerictextbox editor is not currently open but I need the step size, max, min and so on of that column/cell ?
I am not sure that I understand the exact requirement that you have in the context of the grid. Can you please elaborate a little bit more on the scenario and the functionality that you are looking for?
Additionally, if you can create a simplified example in dojo with your scenario, we will be able to work directly on it.
Looking forward to your reply.
Okay I have set up this example http://dojo.telerik.com/aMOTo/2
But instead to use +1, -1 I want spin up/down because in every row the step size could be different for each numerictextbox. so instead of saving the step size of the row somewhere and reading them out before inc/dec I just want to trigger the spinner so that I don't have to care about min/max/step.
I have modified the logic of the custom command buttons and as you will notice, we are opening the cell for editing, so we can get reference to the NumericTextBox and use its _step() method for changing the value: