Editor - Mask unknown field type mask
Editor - Mask unknown field type mask
Hello,
I'm using Trial Datatables Editor,
Can I use MaskInput on Trial Version ?
I'm added jQuery Mask Plugin js File
Error : angular.js:15536 Possibly unhandled rejection: Error adding field - unknown field type mask
{
data: "aylikucreti"
,name: "aylikucreti"
, title: "Ücret"
, className: 'dt-body-center'
,type: "mask"
,mask: "#.##0"
,maskOptions: {
reverse: true,
placeholder: ""
}
}
Answers
Hi @orka@orka.com.tr
Yep, you get the full functionality in the trial version. It looks like you're adding the mask information into DataTable's
columns
declaration, rather than the Editorfields
. Could you check and if it looks ok as is, could you post more code or link to a test case please.Cheers,
Colin
Hello colin,
I created a Test page for you can see the error,
personel.orkabulut.com/Public/Test
Please continue to the first alert message with click ok
Site.js = vm.Test()
OrkaTools.js -> DataTable.Olustur()
Thank you.
You need to include the Editor / Mask integration plug-in which isn't available during the trial I'm afraid. I'll drop you a PM just now though.
Allan
Hello Allan, Thank you.
How I can do Mask as Turkish Lira
1150.19 -> 1.150,19
250.25 -> 250,25
1251149.50 -> 1.251.149,50
Decimal : ","
Thousands: "."
DataTables Rendering true, but Mask Edit worrong
My Example :
personel.orkabulut.com/Public/Test
Hi @orka@orka.com.tr ,
Looking at their docs, , they have this for money,
000.000.000.000.000,00
,Cheers,
Colin
hi Colin,
I'm tryed this Mask Format but Not correctly working.
I'm changed my example with this mask
personel.orkabulut.com/Public/Test
Ah, I suspect you'll need the
reverse
property too, try:C
Thanks Colin,
I'm sorry to bother you, Okey now from Mask but worrong Changing Values,
Im tried without render, result has not changed
1.250,19(in mask) incorrect changing to 125019 (rendered value),
personel.orkabulut.com/Public/Test
and How i can do get changed values, ArrayList not changing
Hi @orka@orka.com.tr ,
It looks like the
columns.render
is getting the value without the decimal place. Change the final bit of the render to bedisplay(data/100)
and it works as expected, see here.I'm not sure what you mean by ArrayList, but you can get the raw data with
cell().data()
, or the rendered value withcell().render()
, passing in'display'
,Cheers,
Colin