The edit event
is triggered when the user double click on the task, not on the text that describes the resource. If you need to bind click event to the resources text, you could use the 'k-resource' class. In the click event handler you could open the needed Dialog.
Here is a Dojo
example where on double click on the resource a Dialog appear.
To ensure that all the elements are rendered by the time you are binding the click event I would suggest you to use the setTimeout