I have tested and found that date fields in scroll right pages can't have Calendar pop-up. It can pop-up without problem in the first page. Is that anything I can adjust?
The "without problem in the first page" suggests in may be down to this issue here. Could you take a look at that, please, and if it doesn't help, can you post your code so we can see the issue.
Ideally if you could link to the page please. If you can't post the link publically, you can PM it to me by clicking my forum user name and then the "Send message" button.
Alternatively, a test case could be created using https://live.datatables.net , JSFiddle, CodePen, StackBltiz or one of any other similar service.
I found that the date fields can pop up Calendar but the Calendar not showing next to the field. Is it the problem for right scrolling columns? Any chance to keep pop-up next to the date fields?
I'd honestly need an example showing it not working as I haven't been able to reproduce the error and therefore don't actually know what is wrong. The picker is meant to be next to the input element, and in the demos I have, it does appear to be.
Replies
The "without problem in the first page" suggests in may be down to this issue here. Could you take a look at that, please, and if it doesn't help, can you post your code so we can see the issue.
Colin
How can I send in the file for checking?
Ideally if you could link to the page please. If you can't post the link publically, you can PM it to me by clicking my forum user name and then the "Send message" button.
Alternatively, a test case could be created using https://live.datatables.net , JSFiddle, CodePen, StackBltiz or one of any other similar service.
Allan
/*
* Editor client script for DB table Orders
* Created by http://editor.datatables.net/generator
*/
addEventListener("DOMContentLoaded", function () {
var editor = new DataTable.Editor( {
ajax: 'php/table.Orders.php',
table: '#Orders',
fields: [
{
"label": "Factory:",
"name": "factory"
},
{
"label": "Customer:",
"name": "customer"
},
{
"label": "Season:",
"name": "season"
},
{
"label": "Buy:",
"name": "buy"
},
{
"label": "CoNew:",
"name": "conew"
},
{
"label": "issDate:",
"name": "issdate",
"type": "datetime",
"format": "YYYY-MM-DD"
},
{
"label": "Brand:",
"name": "brand"
},
{
"label": "ProductCategory:",
"name": "productcategory"
},
{
"label": "Style:",
"name": "style"
},
{
"label": "CustomerStyle:",
"name": "customerstyle"
},
{
"label": "Description:",
"name": "description"
},
{
"label": "Product:",
"name": "product"
},
{
"label": "T2:",
"name": "t2"
},
{
"label": "Fabric:",
"name": "fabric"
},
{
"label": "FabricType:",
"name": "fabrictype"
},
{
"label": "ProdType:",
"name": "prodtype"
},
{
"label": "Construction:",
"name": "construction"
},
{
"label": "Efficiency:",
"name": "efficiency"
},
{
"label": "PnNo:",
"name": "pnno"
},
{
"label": "POQty:",
"name": "poqty"
},
{
"label": "PNQty:",
"name": "pnqty"
},
{
"label": "MaterialArr:",
"name": "materialarr"
},
{
"label": "ExFty:",
"name": "exfty",
"type": "datetime",
"format": "YYYY-MM-DD"
},
{
"label": "FtyLine:",
"name": "ftyline"
},
{
"label": "ProdPN:",
"name": "prodpn"
},
{
"label": "Color:",
"name": "color"
},
{
"label": "Gender:",
"name": "gender"
},
{
"label": "ProdQty:",
"name": "prodqty"
},
{
"label": "Cutting:",
"name": "cutting",
"type": "datetime",
"format": "YYYY-MM-DD"
},
{
"label": "Allocate:",
"name": "allocate",
"type": "datetime",
"format": "YYYY-MM-DD"
},
{
"label": "StartSew:",
"name": "startsew",
"type": "datetime",
"format": "YYYY-MM-DD"
},
{
"label": "SewComplete:",
"name": "sewcomplete",
"type": "datetime",
"format": "YYYY-MM-DD"
},
{
"label": "Add4DaysPacking:",
"name": "add4dayspacking",
"type": "datetime",
"format": "YYYY-MM-DD"
},
{
"label": "FirstRevCRDDate:",
"name": "firstrevcrddate",
"type": "datetime",
"format": "YYYY-MM-DD"
},
{
"label": "SecondRevCRDDate:",
"name": "secondrevcrddate",
"type": "datetime",
"format": "YYYY-MM-DD"
},
{
"label": "FinalRevCRDDate:",
"name": "finalrevcrddate",
"type": "datetime",
"format": "YYYY-MM-DD"
},
{
"label": "FtyRevSewComplete:",
"name": "ftyrevsewcomplete",
"type": "datetime",
"format": "YYYY-MM-DD"
},
{
"label": "FinalRevSewComplete:",
"name": "finalrevsewcomplete",
"type": "datetime",
"format": "YYYY-MM-DD"
},
{
"label": "delayDays:",
"name": "delaydays"
},
{
"label": "delayDaysRange:",
"name": "delaydaysrange"
}
]
} );
// Activate an inline edit on click of a table cell
table.on('click', 'tbody td:not(:first-child)', function (e) {
editor.inline(this);
});
});
It can show the Calendar pop-up for issDate on the first page, but can't for all other Date fields.
This example has two date fields and it doesn't seem to have a problem showing both.
Can you provide a link to a page showing the issue so I can debug it please?
Allan
I found that the date fields can pop up Calendar but the Calendar not showing next to the field. Is it the problem for right scrolling columns? Any chance to keep pop-up next to the date fields?
I'd honestly need an example showing it not working as I haven't been able to reproduce the error and therefore don't actually know what is wrong. The picker is meant to be next to the
input
element, and in the demos I have, it does appear to be.Can you link to the page showing the problem?
Allan