var dataTypeDefinition1 =DataTypeDefinition.GetDataTypeDefinition(1035); var mediaChooser =(mediaChooser)dataTypeDefinition1.DataType.DataEditor; mediaChooser.ID ="MediaChooser"; panel.Controls.Add(mediaChooser); }
then I set the value of the media chooser like so:
This seems to load everything just fine, and I can open the dialogue to select a new image. However when I select a new image and click the 'pick item' button in the dialogue, the picked image does not make it into the mediaChooser. It still holds the old image.
No postback occurs or anything. The console in chrome comes up blank.
I swear this used to work, and just seemed to stop. I don't think anythings changed this end. Any idea's on how I can debug this further?
I traced the javascript, and it put the dialogs return value into the ModalWindow.m_rVal variable, and then the code just closes the window. Is the mediaChooser supposed to pick this change up somehow via the onHide handler?
Umbraco: mediaChooser in UserControl
I implemented a media chooser in my own user control data type like so:
then I set the value of the media chooser like so:
This seems to load everything just fine, and I can open the dialogue to select a new image. However when I select a new image and click the 'pick item' button in the dialogue, the picked image does not make it into the mediaChooser. It still holds the old image.
No postback occurs or anything. The console in chrome comes up blank.
I swear this used to work, and just seemed to stop. I don't think anythings changed this end. Any idea's on how I can debug this further?
Cheers, Greg
I traced the javascript, and it put the dialogs return value into the ModalWindow.m_rVal variable, and then the code just closes the window. Is the mediaChooser supposed to pick this change up somehow via the onHide handler?
is working on a reply...