I have to set the value of a RadNumerictextBox. The first problem is that it is in a repeater so I cannot get the object by id. And the second problem is, the event is not fired by the NumericTextBox, but by another control in the repeater (in the same line), so I cannot use the sender argument of the function.
I am able to get the parent of the first control (the one that fires the event), and then look through its children and find the many html elements the RadNumerictextBox renders to. But these are html elements and don't expose the client api.
Specifically it renders into a span containing a span and an input. I had assumed that the first span represents the value displayed, and the input the actual value, the one sent back to the server.
I tried to cheat and access these two elements through their classes and set their values, but it doesn't work. The new value shows up for a second and then resets.
tldr: I need a way to access the NumericTextBox and set its value, in a javascript event fired by another control in the same line in a repeater.
If I had not explained my problem clearly enough please say so and I shall attempt to provide you with more details.
I am able to get the parent of the first control (the one that fires the event), and then look through its children and find the many html elements the RadNumerictextBox renders to. But these are html elements and don't expose the client api.
Specifically it renders into a span containing a span and an input. I had assumed that the first span represents the value displayed, and the input the actual value, the one sent back to the server.
I tried to cheat and access these two elements through their classes and set their values, but it doesn't work. The new value shows up for a second and then resets.
tldr: I need a way to access the NumericTextBox and set its value, in a javascript event fired by another control in the same line in a repeater.
If I had not explained my problem clearly enough please say so and I shall attempt to provide you with more details.