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

ItemTemplate on RadFileExplorer

1 Answer 44 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Gilles
Top achievements
Rank 1
Gilles asked on 28 Feb 2012, 02:33 PM
Hi,

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?

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 29 Feb 2012, 02:15 PM
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?

Greetings,
Dobromir
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.
Tags
FileExplorer
Asked by
Gilles
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or