serpico
September 8, 2010, 12:41pm
#1
im using the filter for the grid for a date columm:
dhxGrid.attachHeader("#rspan ,#text_filter ");
the date format is: DD-MM-YYYY, how can i make it that when you type it in a different format, it automaticly changes to the right format?
for example:
DDMMYYYY -> DD-MM-YYYY
DD-MM-YYYY -> DD-MM-YYYY
DDMMYY -> DD-MM-YYYY
DD-MM-YY -> DD-MM-YYYY
so when you type the date, and leave the -'s out, it fills it in automaticly after each keypress…
Olga
September 9, 2010, 9:57am
#2
It can be done only with custom filter in the header. You can attach onblur or any other event to the custom input in the header and change it’s value in necessary way
serpico
September 9, 2010, 10:37am
#3
could you please give me an example of how to do this?
thans in advance!
Olga
September 10, 2010, 10:22am
#4
Tutorial of attaching custom content in the header is available here docs.dhtmlx.com/doku.php?id=dhtm … er_extra&s []=custom&s[]=header
grid.attachFooter(“A,,C”);
…
function foramtDate(){
//your custom code here
}
serpico
September 21, 2010, 11:13am
#5
How can i make this function, that it still filters the result after a input?