Setting the property value to null

2 posts, 0 answers
  1. Marcin
    Marcin avatar
    31 posts
    Member since:
    Jul 2013

    Posted 12 May 2015 Link to this post


     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

  2. Stefan X1
    Stefan X1 avatar
    485 posts

    Posted 15 May 2015 Link to this post

    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,
    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
  3. DevCraft banner
Back to Top