Hi,
There is a requirement to remove any values present in the Ultranumericeditor at runtime when a button is clicked. I have been trying this for sometime and could not see any property of the Ultranumericeditor supports this. Kindly advise.
Hello Preeth,
To clear the values in UltraNumericEditor at runtime upon a button click, you can write something like below in the click event.private void button1_Click(object sender, EventArgs e) { this.ultraNumericEditor1.Value = null; }
Make sure you set the below property in order to allow null values in UltraNumericEditor. this.ultraNumericEditor1.Nullable = true;Please let me know if I may be of further assistance.
Sincerely,Sahaja KokkalagaddaAssociate Software Developer
Yes the nullable property is true for my ultranumericeditor.
To be more clear on this.. My screen opens and i set a value to the ultranumericeditor, say 25 via its binding source using a strongly typed in-memory cache of data. So this 25 will be present in the ultranumericeditor. Now on a specific scenario, a button pops up in that screen and when i click on it i need to clear the value present in there, i.e., 25 should be removed and the editor should be blank. Note: we can manually remove this by selecting the data present in the editor and delete them using delete button. I want to achieve this through code and value property does not help me on this. Kindly advise.