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

Setting the property value to null

1 Answer 77 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Marcin
Top achievements
Rank 1
Marcin asked on 12 May 2015, 12:51 PM

Hi,

 in our scenario we have properties of types Nullable<bool> and Nullable<int>. Everything works fine to the moment, when I try to clear the value (set to null).

In such case, when setting the generated checkbox to null, specific object's property is not set. For editing the nullable<int> properties I tried using both RadNumericUpDown and RadMaskedNumericInput. Both with same result - everything works fine until clearing the value of the control.

I guess this is due to some logic of clearing the value if any difference in properties values in selected multiply objects, but in such case, when the user clears the fields value, it should be passed to the property, and it should be cleared in all objects.

 Hope the description is clear.

Best regards

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 15 May 2015, 12:15 PM
Hello Marcin,

I tried reproducing the described issue, however, I was not able to. I am attaching a sample project illustrating how a nullable property can be set to null and the edited again.

Can you please modify it according to your exact project setup, open a new support ticket and attach the project in it?

I am looking forward to hearing from you.

Best Regards,
Stefan
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
PropertyGrid
Asked by
Marcin
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or