Question
Im trying to add and delete the TimeItem using the context menu Add and Delete menus respectively. I can add the timeitem by getting the start and end time, but im not able to delete the selectedtimeitem. how do i do that?
Answer
You can delete a time item like this:
aTimeItem.Layer.Remove(aTimeItem);
Note: If the the time item has been added as a result of a databind to the layer you should remove the row in the datasource and not “attack” the time item itself…