This is a migrated thread and some comments may be shown as answers.

[Solved] ImageEditor -> DialogHandler; Override File exist chkbx?

1 Answer 54 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Wesley
Top achievements
Rank 1
Wesley asked on 15 Feb 2010, 10:06 AM
Hi,

I created a custom class and implemented the FileBrowserContentProvider.
Reading my file from my imagebank is no problem, I can insert them in the editor and displays fine.

The problem comes when I want to upload a new image, it always comes with the notification 'A file with a name same as the target already exists!'. And there is no file with the same name.. When I check the overwrite checkbox, it works like a charm..

Is it possible to disable/override the FileExists check or check the checkbox and hide it? Or can I solve it any other way?

Thanks in advance!

1 Answer, 1 is accepted

Sort by
0
Wesley
Top achievements
Rank 1
answered on 15 Feb 2010, 10:34 AM
Solved it.

Created a new css file and specified this in DialogsCssFile and hide the checkbox; Got this from another thread.
http://www.telerik.com/community/forums/aspnet/editor/imagemanager-how-to-disable-overwrite.aspx

Then created a new js file and specified this in the DialogsScriptFile and this contained a PageLoad event and I set the checkbox value to true.
Tags
Editor
Asked by
Wesley
Top achievements
Rank 1
Answers by
Wesley
Top achievements
Rank 1
Share this question
or