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
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.
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.
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,
Telerik
See What's Next in App Development. Register for TelerikNEXT.
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.
Hello;
Any possible solution to my case please.
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
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
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