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>