ItemTemplate on RadFileExplorer

2 posts, 0 answers
  1. Gilles
    Gilles avatar
    1 posts
    Member since:
    Feb 2012

    Posted 28 Feb 2012 Link to this post


    I use custom templates to display folders and files in the Treeview of the RadFileExplorer. I load 2 different templates, the first one is for root folder and the second one for the rest of the folders arborescence. My templates are added on the event TemplateNeed.
    By the way, my RadFileExplorer use a custom content provider. When the RadFileExplorer is entirely load, I notice a problem on the displayed data in the treeview and the data in the grid. It's only valable for the first record. Here is an exemple:

    • rootNode1
      • folder1
        • folder21
      • folder2
        • folder11
        • folder12
      • folder3
    • rootNode2
      • folder1
        • folder11
        • folder12
      • folder2
        • folder21
      • folder3

    When the treeview is loaded, the folderXX aren't displayed yet. If I click on the "folder1" of "rootNode1" -> I get the values of the "folder2". If I remove my custom templates, it works perfectly.

    Do you have any idea where does that come from?

  2. Dobromir
    Dobromir avatar
    1633 posts

    Posted 29 Feb 2012 Link to this post

    Hi Gilles,

    RadFileExplorer does not offer the possibility to use custom TreeView's ItemTemplates out-of-the-box and is not one of the advertised features.

    The tree nodes displaying the folders carry information required by the RadFileExplorer's underlying content provider. Modifying the default ItemTemplate my cause various side effects and such modifications are highly not recommended.

    In addition, the provided information regarding the customizations applied to RadFileExplorer is not enough to determine the exact cause of the experienced issue. Could you please open a formal support ticked to provide a sample fully runnable project demonstrating the problem so we can examine it further?

    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 RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top