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

[Solved] How to configure Insert Image dialog – preview area display only single Thumbnail of the current uploaded image, with enlarged actual size of the image instead of multiple and small icons?

1 Answer 39 Views
Editor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ramakrishna
Top achievements
Rank 1
Ramakrishna asked on 02 Jan 2012, 12:40 PM
Hi,

Is there any way to configure externally, such that, Insert Image dialog – preview area displays only single Thumbnail of the current uploaded image, with enlarged actual size of the image instead of multiple and small icons.

I am placing the code below, that I found as an alternative.

a)      Display single Thumbnail: Modified the script file, telerik.imagebrowser.min.js, as placed below to display a Single Thumbnail instead of Multiple Thumbnails in Insert Image dialog – preview area.

From:- if(t.length){t.before(w)}else{this.wrapper.append(w)}

To:- if(t.length){t.replaceWith(w)}else{this.wrapper.append(w)}

b)      Also modified the below code to achieve desired Thumbnail URL:

telerik.imagebrowser.min.js

From:- {return this._thumbnailUrl+"/?path="+q+r}

To:-  {return q+r}

 

Please provide appropriate comments for best practises to configure this, possibly external.

Thank You.

 

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 02 Jan 2012, 12:56 PM
Hi,

I am not sure what your requirement is. Could you please clarify? 

Also please note that Telerik does not support any modifications to the provided source code. You can modify it at your own risk.

Regards,
Atanas Korchev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
Tags
Editor
Asked by
Ramakrishna
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or