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

Opening File Explorer control from another user control

4 Answers 119 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Neil
Top achievements
Rank 1
Neil asked on 22 Jul 2016, 10:07 AM

Hi,

 

I have an application where from a user control, I am trying to open another user control which contains a user control having a custom implementation of Telerik file explorer (3 levels of user controls). Issue is, file explorer loads fine except it appears to be in read only mode i.e all the operations are disabled.

However, same file explorer user control works fine when used directly from a web form.

Any idea what is causing this issue?

4 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 22 Jul 2016, 10:55 AM
Hi Neil,

Is there any JavaScript error thrown on the page when you are loading FileExplroer from inside your user controls structure? What is the error message if so?

Another possible reason for such behavior can be external ajax request updating FileExplroer, which is cancelling the conrol's built-in AJAX logic and its content is not updated as a result of that. Can you disable the Ajax on the FileExplorer's parent page and see whether the problem persists (set the AjaxManager EnableAjax="False)?

Regards,
Vessy
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
Neil
Top achievements
Rank 1
answered on 22 Jul 2016, 11:09 AM

There is no javascript error message and we are not using AjaxManager on parent page .

The control is loading fine. The custom content browser code is executed as well. I can see the record being picked up from database and shown in the explorer, but it appears to be read only. I can't perform any upload/delete/refresh functions.
Also, in the grid, it shows page 1 of 2, though there are not many records present.

 

0
Neil
Top achievements
Rank 1
answered on 22 Jul 2016, 12:50 PM

Issue seems to be caused by 'EnablePartialRendering' on the master page. Removing this property, it works fine.

<asp:ScriptManager ID="scriptManager" runat="server" EnablePartialRendering="False"

        LoadScriptsBeforeUI="True" />

 

Is there any way to remove/override this property just for the control where I am having issue?

0
Vessy
Telerik team
answered on 25 Jul 2016, 04:56 PM
Hi Neil,

I am glad you have pinpoint the root of the problem. The FileExplrorer's functionality is heavily based on AJAX updates, thus it the partial rendering of the page have to be enabled in order for the control to function properly. As the script manager is configured on a page level, though, I am not aware of a way to enable this property only for specific controls. The best option I can suggest you is to use RadAjaxManager and update the needed parts of the page when an update of a specific control occurs.

You may also find useful information on the matter in the following article:
http://www.codeproject.com/Tips/656031/How-to-enable-partial-rendering-with-the-AJAX-Upda

Regards,
Vessy
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
FileExplorer
Asked by
Neil
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Neil
Top achievements
Rank 1
Share this question
or