Cmultifileupload In Cjuidialog

I have a CMultiFileUpload rendering just fine in a CJuiDialog modal. The problem is that any of the CMultiFileUpload triggers such as ‘afterFileSelect’ do not work. I always seem to have trouble when it comes to JQuery/JavaScript and especially when rendering in a dialog. Can someone explain what is happening and how I can avoid it?