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

[Solved] FileBrowser

2 Answers 50 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.
Marco
Top achievements
Rank 1
Marco asked on 03 Mar 2012, 05:11 PM
Hello,

I really like the FileBrowser in the Editor that is available for uploading images.
Is it also possible to call this FileBrowser directly?

Kind regards,
Marco

2 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 05 Mar 2012, 02:00 PM
Hi Marco,

The image browser cannot be used as a standalone component, but you can achieve a similar behavior by using the Editor and hiding everything that is not needed. The following will produce only a small button:

Html.Telerik().Editor()
    .Name("Editor")
    .HtmlAttributes(new { @class = "myImageBrowser", cellspacing = "0" })
    .Tools(tools => tools.Clear().InsertImage())
    .FileBrowser(................)

table.myImageBrowser
{
    width:auto;
    height:auto;
    table-layout:auto;
}
 
.myImageBrowser .t-editable-area,
.myImageBrowser .t-editable-area iframe.t-content,
.myImageBrowser tr+tr>td>* /*this selector needed by IE7*/
{
    visibility:hidden;
    width:0;
    height:0;
    overflow:hidden;
    font:0/0 serif;
    border:0;
    padding:0;
}


Greetings,
Dimo
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.
0
cesurde
Top achievements
Rank 1
answered on 13 Apr 2012, 12:17 PM
how to get selected file path from Filebrowser ? 
İ work to get in 
 .ClientEvents(e => e.OnSelectionChange("onselectionChange")) event. but i don't find that.
Tags
Editor
Asked by
Marco
Top achievements
Rank 1
Answers by
Dimo
Telerik team
cesurde
Top achievements
Rank 1
Share this question
or