Date Picker (DhtmlxCalendar) in Toolbar ?

Hi

I have a DtmlxGrid displayed within a DhtmlxWindow (as well as menu and toolbar), but i would like to allow the user to select a date range and then refresh the grid.

I know i can have input boxes within the toolbar, but i would prefer to have a calendar popup ?

I have tried launching a new DhtmlxWindow and embedding the DhtmlxCalendar with little success…

Has anyone found a work round to this ?

Many thanks
Andy

Hello

you can set onclick event handlers to the left and right calendars of double calendar:

calendar.leftCalendar.attachEvent(“onClick”,function(date){
alert("start date is "+ date);
})

calendar.rightCalendar.attachEvent(“onClick”,function(date){
alert("end date is "+ date);
})

Thanks.

Have just tried and works great.

Andy