Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Michael on Jun 24, 2009 11:47
open dhtmlx forum
Clear vallue of dhtmlxCalendar in grid cell

I have a dhtmlxCalendar in a grid column. Once I pick a date for the cell, there is no way to clear the value. I do not see a setting that show a clear value option on the calendar.

How can I clear the value of the cell?
Answer posted by dhxSupport on Jun 25, 2009 02:34
You can clear dhxCalendar cell's value as ordinary cell's value: mygrid.cell(rowID, cellIndex).setValue("");
Answer posted by Michael on Jun 29, 2009 05:45

Correct. 

But I guess what I was asking was...is there a way the user could clear the value using the calendar?  So I guess there is not.  Only if I create some button or something that has the javascript code you have shown above.  Ideally this would be part of the calendar.

Answer posted by dhxSupport on Jun 29, 2009 05:57
Unfortunately dhxCalendar hasn't such functionality.