How could i add currency constraint to djxDataGridColumn in Dojo layout
Programmaticly i will use:
{ name: 'Amount', field: 'col5', formatter: formatCurrency, constraint: {currency: 'EUR'}, widgetClass: HorizontalSlider, width: 10}
But how can i make it happen in XPages:
<xe:djxDataGridColumn id="djxDataGridColumn10" editable="true" label="Amount " field="Amount " width="50px" cellType="dojox.grid.cells._widget"
formatter="formatCurrency">
</xe:djxDataGridColumn>
I need to be able to validate the Column input when the grid is edited
function formatCurrency(value){
return isNaN(value) ? '...' : currency.format(value, {currency: "EUR"});
}