Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > FileExplorer > See file icons with treeview explorer mode

Not answered See file icons with treeview explorer mode

Feed from this thread
  • Raul avatar

    Posted on Jan 20, 2012 (permalink)

    Hi Telerik Team,

    I'm using the radfileexplorer to show the content of my sharepoint 2010 library. However it was very slow when loading all my content, so I'm trying the treeview explorer mode. Just like this.

    <telerik:RadFileExplorer ID="RadFileExplorer1" runat="server" Language="es-ES" OnClientFileOpen="OnClientFileOpen" AllowPaging="true" VisibleControls="Grid,Treeview" explorermode="FileTree">
     </telerik:RadFileExplorer> 


    But the problem I'm getting right now is that I can't see my files icon. Everything loads great, but to every file loads the same icon (the unknown file one), the folders load good.


    So I was wondering if there's anyway to recognize my file extension and get the correct one


    Thanks in advance

    Best Regards

    Raúl Ortega

    Reply

  • Raul avatar

    Posted on Jan 20, 2012 (permalink)

    I've been modifying the fileextensionsprites moving icons up and down and my files get always the same position icon, which was originally destinated to the unknown one.



    Edit---

    Getting a little deeper i realised that when my explore mode is TreeView this javascript code

    function OnClientFileOpen(oExplorer, args) {
              //get the extension of the opened item
              var fileExt = args.get_item().get_extension();
    alert(fileExt)
    }

    returns me nothing. But when is set to default returns me the good extension. But I still don't understand why, or how to solve it.

    Reply

  • Raul avatar

    Posted on Jan 20, 2012 (permalink)

    Already resolved!!

    I didn't realised that spfile extension property is automatically done by the default explorermode but not the treeview one.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > FileExplorer > See file icons with treeview explorer mode
Related resources for "See file icons with treeview explorer mode"

ASP.NET FileExplorer Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]