jQWidgets Forums

jQuery UI Widgets Forums Form jqxForm date culture/format

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  Stef Balaban 6 years, 1 month ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • jqxForm date culture/format #103926

    Stef Balaban
    Participant

    Hello,
    I am trying to implement a jqxForm, in my ASP.NET CORE application, which contains a date input field, the problem that I am having is that it is stuck on MM/dd/yyyy format or us-EN culture.
    I scanned trough the demo and documentation but there is no mention of how to change the format or the culture of a date field in jqxForm,
    So my question goes is there a way to change the culture/format of a jqxForm and if not will it be implemented soon?
    Thanks in advance.

    {
    bind: ‘datum’,
    type: ‘date’,
    label: ‘Datum kvara’,
    labelPosition: ‘left’,
    labelWidth: ‘30%’,
    align: ‘left’,
    width: ‘250px’,
    required: true,
    },

    jqxForm date culture/format #103934

    Peter Stoev
    Keymaster

    Hi Stef,

    After the Form is created, you can get any of its fields and customize it.

    Ex:

    var btn = sampleForm.jqxForm('getComponentByName', 'submitButton');
    btn.on('click', function () {
    	// function: submit
    	// arg1: url
    	// arg2, optional: target, default is _blank
    	// arg3, optional: submit method - GET or POST, default is POST
    	sampleForm.jqxForm('submit', "https://www.jqwidgets.com/form_demo/", "_blank", 'POST');
    });	

    So you can get the DateTimeInput component and set its “culture” property. Make sure that the globalize.js culture file is loaded as well.

    Regards,
    Peter

    jQWidgets Team
    https://www.jqwidgets.com

    jqxForm date culture/format #103936

    Stef Balaban
    Participant

    Thank you for the insight.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.