This is a migrated thread and some comments may be shown as answers.

I need change culture datepicker is th-TH

0 Answers 213 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
AL
Top achievements
Rank 1
AL asked on 16 May 2012, 08:48 AM
I need change culture datepicker is th-TH but i want call kendoDatePicker all file i use widget-style="kendoDatePicker" but it doesn't work  
please help me I'm sorry i can type Eng a little bit



example
widget.js
$(document).ready(function() {
kendo.culture (th-TH);
 $(".kendoDatePicker").kendoDatePicker({
    format: (kendo.culture().calendar.patterns.d)
         
         });
});



XML_FORM.xml
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
    <!-- Invoice forms -->
    <form name="FindInvoices" type="single" target="findInvoices" title="Find and list invoices"
        header-row-style="header-row" default-table-style="basic-table">
        <field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done
--></field>
        <field name="hideSearch"><hidden value="Y"/></field>
        <field position="1" name="invoiceId" title="${uiLabelMap.iMAS_PurchaseCashInvoiceId}" widget-style="k-textbox"><lookup target-form-name="LookupCashPurchaseInvoice" size="15"/><!--text-find default-option="contains" ignore-case="true"/--></field>
        <field position="2" name="orderId" title="${uiLabelMap.iMAS_PurchaseCashOrderId}" widget-style="k-textbox"><lookup target-form-name="LookupOrderHeaderPurchase" size="15"/></field>
        <field position="1" name="partyIdFrom" parameter-name="partyId" title="${uiLabelMap.iMAS_PurchaseInvoiceSupplier}" widget-style="k-textbox"><lookup target-form-name="LookupSupplier" size="15"/></field>
        <field position="2" name="invoiceDate" title="${uiLabelMap.iMAS_PurchaseCashInvoiceDate}" widget-style="kendoDatePicker"><text default-value="${nowDateTime}"/></field>
        <field position="2" name="statusId" title="${uiLabelMap.CommonStatus}" widget-style="kendoDropDownList">
            <drop-down allow-empty="true" current="first-in-list" >
                <entity-options description="${description}" entity-name="StatusItem">
                    <entity-constraint name="statusTypeId" operator="equals" value="INVOICE_STATUS"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="invoiceTypeId">
            <hidden value="CASH_PURCHASE_INVOICE"/>
        </field>
    </form>

No answers yet. Maybe you can help?

Tags
Date/Time Pickers
Asked by
AL
Top achievements
Rank 1
Share this question
or