grid - calendar - how to set clear-button

hello,
it`s possible by javascript or it must be by xml?

...
	grid.setColTypes("dhxCalendar,dhxCalendar,ed,combo,ch,ch,ro");
...
	gridDay.attachEvent("onDhxCalendarCreated",function(cal,rId,cInd) {	
		cal.loadUserLanguage('de');
		cal.setSkin('dhx_black');
                 // it`s possible to set clear button ?!
	});

gracie
hopsy

Couldn’t you explain what exact action do you need and where the needed button should be?

YES WE CAN
< obama :laughing:

Couldn’t you explain what exact action do you need…
We want clear the input-field which filled by calendar, with a click on the calendar [C] icon.
and where the needed button should be?
The clear button/icon should be on the right top of the showed calendar.

Normally we set this option about constructor…

new dhtmlxCalendarObject( ... , {headerButtons:'XT[b]C[/b]'});

But in this case, we want display the calendar clear button in our grid-rows.
All works fine and we find a other, but not so pretty solution.

May be its also possible to show this clear button in our, by xml generated grid rows.

Sorry for my not so professional english, but i hope, that i explained our question exactly enough.

mille grazie

To clear the value of the cell you may try to use cells() method:

mygrid.cells(rId,cInd).setValue("")

You may put any needed html inside the value of needed cell.
If you load data from xml you just need to put your data inside CDATA:

<cell><![CDATA[<input type="button" onclick="act()" value="clear">]]></cell>