Data formatting in DataForm: numeric + datetime fields

Hi, I am trying to format numeric + datetime fields  in dataform to show a particular format:

For numeric, I need a standard "000" format. So if I enter 50 on the numeric pad, I get 050 on the form. I tried the windows Format string (I would use "D3" to get this particular format I believe), but now this does not work.

As for the DateTime field, I am only interested in the hh:mm, I don't want the datetime picker to appear. I could do it manually using strings, and enter 00:15, but would like to enter only 4 digits (int) with the numeric pad, so we would have a string ":" in the middle. This way I can read it as a string and parse it to datetime. Or can we have a string where we see this ":" in the middle and 00 on each side? We could use 2 fields, and 1 label in between, but you know, ... :)

Can you help me find a way around for this?

Nicolas

4 Replies

JN Jayaleshwari N Syncfusion Team October 17, 2017 03:57 AM UTC

Hi Nicolas, 

Thanks for contacting Syncfuison support. Please find the details about the queries. 

Query 
Details 
Standard format for numeric field 
We currently does not have support to format the numeric values like “N3” or “D3”. We will check this support in SfNumericTextBox and update the details by  17th October, 2017. 
DateTime fields as editable without picker 
If you change the built-in Date picker loading for DateTime field by using custom editor.  
  

Regards, 

Jayaleshwari N. 
 



MK Muthu Kumaran Gnanavinayagam Syncfusion Team October 19, 2017 12:36 PM UTC

Hi Nicolas,

Currently
SfNumericTextBox do not have support for Standard Data format. However we have added it to our feature request list. 

Note: Feature implementation is tentative and not a commitment on our parts. We do not have immediate plans for this feature implementation due to preplanned tasks. We will update you once the feature has been implemented. 
 
 
Regards, 
G.Muthu Kumaran. 



NI Nicolas October 20, 2017 08:25 AM UTC

Hi Muthu, thank you for your follow-up and update, it is greatly appreciated!

Nicolas



TV Thangapriya V Syncfusion Team October 23, 2017 05:26 AM UTC

Hi Nicolas,    
Thanks for the update.  
Please let us know if you need further assistant on this.    
Regards,  
Thangapriya 


Loader.
Up arrow icon