See file icons with treeview explorer mode

3 posts, 0 answers
  1. Raul
    Raul avatar
    3 posts
    Member since:
    Dec 2011

    Posted 20 Jan 2012 Link to this post

    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
  2. Raul
    Raul avatar
    3 posts
    Member since:
    Dec 2011

    Posted 20 Jan 2012 Link to this post

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

    Posted 20 Jan 2012 Link to this post

    Already resolved!!

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