Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Agile on Nov 24, 2008 05:49
open dhtmlx forum
Custom Filter

Hi Team,

I am using custom filter and initializing grid as,

var date_filter1 = "<input type='text' id='filter_date_id1' style='width:90%;height:13px;' onkeyup='customDateFilter(this,\'updated_at\');' onclick='(arguments[0]||event).cancelBubble=true;' />";

...
var date_filter2 = "<input type='text' id='filter_date_id2' style='width:90%;height:13px;' onkeyup='customDateFilter(this,\'created_at\');' onclick='(arguments[0]||event).cancelBubble=true;' />";

var header = "#text_filter,#text_filter,#text_filter,"+date_filter1+","+date_filter2;

mygrid.attachHeader(header);
...

Last two columns are date filters.The last 2 filters are not displaying due to some string concatenation problem from above code.
Please suggest any solution for above code to work.


Thanks,
Agile
Answer posted by Support on Nov 24, 2008 07:55
Change command syntax to the syntax to the 

var header = ["#text_filter","#text_filter","#text_filter",date_filter1,date_filter2];
mygrid.attachHeader(header);