FileExplorer does not display viewpaths inside an EditItemTemplate of RadGrid

2 posts, 1 answers
  1. cmr
    cmr avatar
    7 posts
    Member since:
    Jun 2010

    Posted 07 Jun 2010 Link to this post

    The FileExplorer control does not display the specified path hierarchy.  The file explorer control is currently housed inside an EditItemTemplate for a GridTemplateColumn within a MasterTableView of the RadGrid.  I am able to find the file explorer control and change its background color, but for some reason the path is not displayed.  Any ideas?  The page design and C# code have been included below.

    Page Design:
    <telerik:RadGrid ID="exampleRadGrid" runat="server" 
    onitemdatabound="reportDealershipRadGrid_ItemDataBound"
       <MasterTableView> 
          <Columns> 
             <telerik:GridTemplateColumn> 
                <EditItemTemplate> 
                   <telerik:RadFileExplorer ID="fileNameRadFileExplorer" runat="server" /> 
                </EditItemTemplate> 
             </telerik:GridTemplateColumn> 
          </Columns> 
       </MasterTableView> 
    </telerik:RadGrid> 
     

    C#:
    protected void exampleRadGrid_ItemDataBound(object sender, GridItemEventArgs e) 
            if (e.Item.IsInEditMode) 
            { 
                string path = Page.ResolveUrl("~/Files/"); 
                RadFileExplorer fileNameRadFileExplorer = (RadFileExplorer)e.Item.FindControl("fileNameRadFileExplorer"); 
                fileNameRadFileExplorer.Configuration.ViewPaths = new string[] { path }; 
                fileNameRadFileExplorer.BackColor = System.Drawing.Color.Green;
                fileNameRadFileExplorer.InitialPath = path;
            }  



  2. Answer
    Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 14 Jun 2010 Link to this post

    Hello Cmr,

    That Page's event, is the latest one where the RadFileExplorer's configuration properties can be set (like ViewPath, DeletePaths, etc.). The RadGrid's ItemDataBound event occurs after that Page's event, however, and unfortunately, for the time being your scenario cannot be implemented.

    Sincerely yours,
    Fiko
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top