Jump to content


Photo

NextGridDateColumn Input Mask


  • Please log in to reply
2 replies to this topic

#1 Svetlana Repin

Svetlana Repin
  • Members
  • 2 posts

Posted 25 August 2020 - 04:55 PM

Hello,
Is there a way to format date editing values?
For example: I want to enter '25082020' and automatically get '25.08.2020'?
Thanks,
Svetlana


#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 7,904 posts
  • Gender:Male

Posted 25 August 2020 - 06:09 PM

Hi Svetlana,

 

There is no automatic way of doing it, but I suggest checking OnAcceptEdit event. There you can inspect Text parameter and set it back to valid Text (that will be converted back to TDateTime).

 

There is also a choice to assign own InplaceEdit (property) control and set it's events while it's placed on a Form.

 

Hope it helps.


boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 Svetlana Repin

Svetlana Repin
  • Members
  • 2 posts

Posted 28 August 2020 - 01:13 PM

Hi Boki,

 

thank you for your answer. Yes it helps.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users