Hello,
I wanted to put a Datepicker in de Header of a grid so it’s easiert to filter and the input is formated right away. I’ve read that the header can contain any html, so i tried to simply put an input field like this in the header:
<input type='text' id='calendar_input'>
So it looks like this:
grid.attachHeader("#rspan,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,<div id='calendarSel' style='padding-right:2px'></div>);
And I declared a calender like this:
var myCalendar = new dhtmlXCalendarObject(["calendar_input"]);
This puts an input field in the header, which is correct. But when I click into that text-field it sorts the colum ascending and descending, like clicking the header itself. Also the calendar doesn’t show up.
Is there any possibility to achieve this?