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
2320
Possible bug with UnboundField DateTime Mask
posted

I'm not sure if this is a bug or not, but when using an UnboundField for a DateTime and setting the XamDateTimeEditor's Mask property to {time} or even "hh:mm tt", it doesn't show what is expected but rather it seems to do "dd:" instead. That is, it puts the day value where the hours should be and it doesn't place anything where the minutes or AM/PM should be.

Setting the mask as {date} works fine.

However, if I set the UnboundField's EditAsType property to DateTime, it works as expected.

Parents
  • 69686
    posted

    Hello,

    I am not sure either whether this is a possible issue or not. By default the UnboundField's DataType property is string so I believe you have to specify that or EditAsType, EditorStyle. When you set one of these properties, the unbound field will generate the proper editor for this type. Do you experience the these issues when the editor is a XamDataTimeEditor (after you set EditAsType) or before setting this - the editor should a XamTextEditor?

Reply Children