Hello, I have a big Problem. I call the Fileexplorer with the Button from client side:
function OpenFileExplorerDialog(val) { |
_globobjectartselect = val; |
var wnd = $find("<%= ExplorerWindow.ClientID %>"); |
wnd.set_navigateUrl("../../filemanager/explorer.aspx?search=" + val); |
wnd.show(); |
} |
function OnFileSelected(wnd, fileSelected) { |
switch(_globobjectartselect) |
{ |
case "Picture": |
var textbox = $find("<%= txtPictureFilePath.ClientID %>"); |
textbox.set_value(fileSelected); |
break; |
case "Video": |
var textbox = $find("<%= txtVideoFilePath.ClientID %>"); |
textbox.set_value(fileSelected); |
break; |
} |
} |
I pass a parameter to the link wnd.set_navigateUrl(). This parameter is to set the search pattern.
Fileexplorer:
This works fine for one call. When i call the picture object first then its ok. In the second call the search patterns are soon the patterns from Picture. The Explorer does not load the new settings.
How can I solve the problem? Its very important for me.
Thank you
Reiner
Fileexplorer:
protected void Page_Load(object sender, EventArgs e) |
{ |
if (Request.QueryString["search"] != null && Request.QueryString["search"] != "") |
{ |
switch (Request.QueryString["search"]) |
{ |
case "Picture": |
string[] patterns1 = { "*.jpg", "*.jpeg", "*.gif", "*.png", "*.bmp" }; |
RadFileExplorer1.Configuration.SearchPatterns = patterns1; |
break; |
case "Video": |
string[] patterns2 = { "*.mpg", "*.mpeg", "*.avi", "*.divx", "*.wmv" }; |
RadFileExplorer1.Configuration.SearchPatterns = patterns2; |
break; |
} |
} |
} |
This works fine for one call. When i call the picture object first then its ok. In the second call the search patterns are soon the patterns from Picture. The Explorer does not load the new settings.
How can I solve the problem? Its very important for me.
Thank you
Reiner