Opening File Explorer control from another user control

5 posts, 0 answers
  1. Neil
    Neil avatar
    11 posts
    Member since:
    Apr 2011

    Posted 22 Jul Link to this post

    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?

  2. Vessy
    Admin
    Vessy avatar
    1380 posts

    Posted 22 Jul Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Neil
    Neil avatar
    11 posts
    Member since:
    Apr 2011

    Posted 22 Jul in reply to Vessy Link to this post

    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.

     

  5. Neil
    Neil avatar
    11 posts
    Member since:
    Apr 2011

    Posted 22 Jul in reply to Neil Link to this post

    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?

  6. Vessy
    Admin
    Vessy avatar
    1380 posts

    Posted 25 Jul Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017