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

Set null/blank for SpinEditor

3 Answers 90 Views
SpinEditor
This is a migrated thread and some comments may be shown as answers.
thuy
Top achievements
Rank 1
thuy asked on 24 Jan 2018, 04:13 AM
When binding data to SpinEditor, I want to display value number (double?, decimal?) for SpinEditor, so I want seperate between 0 and blank/null. How can I set it be default?

3 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 24 Jan 2018, 01:55 PM
Hello Thuy,

There is an example in the following article: Null Value Support | RadSpinEditor.

I hope this will be useful. 

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
thuy
Top achievements
Rank 1
answered on 30 Jan 2018, 03:22 AM

Hi Dimitar,

Sorry for long time response, my concern is I'm separating a number which can be 0, null(blank) and has value. Is there another way to set value of control to null(blank) when loaded or get null (blank)/0 to insert to database without using your sample.

Thank you so much!

0
Dimitar
Telerik team
answered on 30 Jan 2018, 10:52 AM
Hello Thuy,

I am not sure what you want to achieve. Could you give me an example? 

You can directly set the NullableValue property as well:
public RadForm1()
{
    InitializeComponent();
    radSpinEditor1.EnableNullValueInput = true;
}
 
private void radButton1_Click(object sender, EventArgs e)
{
    radSpinEditor1.NullableValue = null;
}

I am looking forward to your reply.
 
Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
SpinEditor
Asked by
thuy
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
thuy
Top achievements
Rank 1
Share this question
or