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

FileExplorer does not display viewpaths inside an EditItemTemplate of RadGrid

1 Answer 49 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
cmr
Top achievements
Rank 1
cmr asked on 07 Jun 2010, 09:22 PM
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;
        }  



1 Answer, 1 is accepted

Sort by
0
Accepted
Fiko
Telerik team
answered on 14 Jun 2010, 02:10 PM
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.
Tags
FileExplorer
Asked by
cmr
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Share this question
or