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
Change command syntax to the syntax to the
var header = ["#text_filter","#text_filter","#text_filter",date_filter1,date_filter2];
mygrid.attachHeader(header);