Is it possible to set the column template function to only be called when a task is added? I want to incorporate a select list into my column template and have the options populate dynamically out of a JSON request. I’m able to set that up just fine by setting my template to
template: function(obj){ return ‘<select id=T’ + obj.id + ‘>’}
And then using jQuery to select by ID and then append my tags accordingly in an ‘onAfterTaskAdd’ event. That’s grand, and does exactly what I want.
However, any time the task is updated (via a drag or other edit) the template redraws and leaves me with an empty select again. I’d like to have the template drawn once and only once.
Edit: I just noticed that the templates redraw any time a new task is added as well.
Is there a way to do this?
Many thanks,
-J