Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
320
Can't reset/update NullText for XamDateTimeInput
posted

Hello,

I'm having a problem while trying to set another text for NullText

for example in constructor:

this.XamDateTimeInputFrom.NullText = "ss";

and then again while click event from another control

this.XamDateTimeInputFrom.NullText = "ss2";

does't work.

I've tried many ways (Binging, SetValue, UpdateLayout etc.)

Maybe there is some solution for resetting text via Infragistics.Windows.Utilities.GetDescendantFromType() ???

Help me :)

Thanks in advance

 

Parents
No Data
Reply
  • 17475
    Verified Answer
    Offline posted

    Hello Nikolay,

    The NullText value is updated when the control is loaded or when it loses focus since it is expected that the user might have change the content of the input. You may try to set the focus to XamDateTimeInput (this.XamDateTimeInputFrom.Focus) when the text is changed and move it back to another control just after that. This will trigger the update of the NullText property and the “ss2” value will be displayed.

Children