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

how to add custom information in Image Manager upload panel info?

8 Answers 132 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
BesT LoLo
Top achievements
Rank 2
BesT LoLo asked on 14 Apr 2015, 07:39 PM

hi,

i want to add some custom information in image manager upload panel. in image manager upload panel ,there is information like max file size allowed,File extension allowed. i also want add some message below or above this message and i want to remove override check box because i always rename the uploaded file to unique name . please see the attachment.

how can we do that ?

 

 

Thanks on advance.

 

BesT LoLo

8 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 16 Apr 2015, 02:02 PM
Hello,

Please, review the following forum thread where a similar scenario has been discussed in details:  Custom Upload File Fields

Once you get a reference to the Upload dialog in the described way you will be able to add the desired additional html content to it.

Regards,
Vessy
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
BesT LoLo
Top achievements
Rank 2
answered on 16 Apr 2015, 09:34 PM

Hi Vessy;

 Thanks for your replay, but I'm afraid that your suggestion can't help me here, because my case is:

Rad Editor --> Image Manager -->Rad File Explorer-->Upload Control.

 

Thanks for replay.

0
Marin Bratanov
Telerik team
answered on 20 Apr 2015, 01:07 PM

Hello,

You can take the editor dialog, put it in your app and modify it so you can access the file explorer control: http://www.telerik.com/help/aspnet-ajax/editor-externaldialogspath-property.html.

Regards,

Marin Bratanov
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
BesT LoLo
Top achievements
Rank 2
answered on 21 Apr 2015, 10:28 AM

Hello Marin;

Thanks for your replay, your suggestion will help me edit file explorer inside rad editor, but that won't help me either because i need to change upload template that's inside file explorer which it can't be reached throw FileBrowser.ascx.

In the attachment picture you can see upload popup invoked by file browser, does this popup has setting somewhere?

 

Thanks on advance.

0
BesT LoLo
Top achievements
Rank 2
answered on 27 May 2015, 06:46 AM

Hello;

Any possible solution to my case please.

0
Vessy
Telerik team
answered on 27 May 2015, 01:06 PM
Hello,

RadFileExplorer does not provide a fucntionality to edit its Upload Dialog template. The only way to apply modifications to the dialog rendering for the moment is to do it on the client like explained in a previously linked forum thread: Custom Upload File Fields

Once you enable the Editor's external Dialogs (refer the Marin's post above) you will be able to access the FileExplorer's client object in the FileBrowser.ascx dialog and apply the desired modifications in it.

Regards,
Vessy
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
BesT LoLo
Top achievements
Rank 2
answered on 03 Jun 2015, 08:44 AM

Hello Vessy;

Thanks for your replay, i read it when you posted it, however it doesn't solve my problem but thanks a lot, I don't want to take your time more, but my issue is i got RadEditor which's contains RadFileExplorer (and this can be reached from FileBrowser.ascx) but still you can make small modifications to it's module and there's more and more things you want to edit it like: the grid inside that RadFileExplorer (e.g. Adding column, sorting...), these things you can modify it if you have just RadFileExplorer without RadEditor like  FileExplorer - Add custom columns, but in my case " RadEditor --> RadFileExplorer "  you can't just do it, and here is a sample code for what I'm talking about:

Public Sub New(context As HttpContext, searchPatterns As String(), viewPaths As String(), uploadPaths As String(), deletePaths As String(), selectedUrl As String, _
           selectedItemTag As String)
           MyBase.New(context, searchPatterns, viewPaths, uploadPaths, deletePaths, selectedUrl, _
               selectedItemTag)
           Dim gridTemplateColumn1 As New GridTemplateColumn
           gridTemplateColumn1.HeaderText = "Creation Date"
           gridTemplateColumn1.SortExpression = "Date"
           gridTemplateColumn1.UniqueName = "Date"
           gridTemplateColumn1.DataField = "Date"
           Dim array(1) As String
           array(0) = "*.JPG"
           array(1) = "*.PNG"
           CType(DirectCast(context.CurrentHandler, Telerik.Web.UI.DialogHandler).FindControl("RadFileExplorer1"), RadFileExplorer).Configuration.SearchPatterns = array
           CType(DirectCast(context.CurrentHandler, Telerik.Web.UI.DialogHandler).FindControl("RadFileExplorer1"), RadFileExplorer).Grid.Columns.Add(gridTemplateColumn1)
       End Sub

So in last line you get error that the RadFileExplorer's grid is nothing and you can't add columns to it.

 Sorry for talking too much, but i believe that you have some magic way to implement my approach.

 

BesT Regards.

BesT LoLo

0
Vessy
Telerik team
answered on 08 Jun 2015, 07:47 AM
Hello,

I am afraid that the provided information is not enough to determine what is preventing you to implement the described approach. Where is the provided code snippet taken from? It seems like a contrsuctor of a custom content provider, while the custom columns have to be added in the page load event, not inside the provider. Can you elaborate a bit on the exact place the given code is used? It will be best if you prepare a sample project demonstrating the exact configuration used by you, so we can determine what part of the suggested integration is missed.

Regards,
Vessy
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
FileExplorer
Asked by
BesT LoLo
Top achievements
Rank 2
Answers by
Vessy
Telerik team
BesT LoLo
Top achievements
Rank 2
Marin Bratanov
Telerik team
Share this question
or