Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

File explorer Gridview MasterTable

$
0
0

Hi Guys,

 Im working on Radfileexplorer I'm facing so many problems, My problem is like  that I want assign the datasource to file explorer  inside gridview how to assign  the datasource to RadfileExplorer mastertable view its getting error here is the code  . can you please help me .

 

                GridBoundColumn  Id = new GridBoundColumn();
                rdFileExplorer.Grid.MasterTableView.Columns.Add(JobFileId);
              Id .HeaderText = "Id";
              Id .UniqueName = "Id";
              Id .DataField = "Id";
               Id .SortExpression = "Id";

        
              GridBoundColumn Name = new GridBoundColumn();
              Name .Grid.MasterTableView.Columns.Add(JobFileId);
              Name .HeaderText = "Name";
              Name .UniqueName = "Name";
              Name .DataField = "Name ";
              Name .SortExpression = "Name";

                rdFileExplorer.Configuration.ContentProviderTypeName = typeof(Telerik.Web.UI.Widgets.FileSystemContentProvider).AssemblyQualifiedName;
                rdFileExplorer.InitialPath = Convert.ToString(folders.GetValue(0));
                rdFileExplorer.Configuration.ViewPaths = folders;
                rdFileExplorer.Configuration.DeletePaths = folders;
                rdFileExplorer.Configuration.UploadPaths = folders;
                rdFileExplorer.Configuration.MaxUploadFileSize = 10485760;
                rdFileExplorer.GridContextMenu.OnClientShown = "OnClientContextMenuShown";
                rdFileExplorer.Grid.AutoGenerateColumns = false;
                rdFileExplorer.Grid.MasterTableView.DataSource = ds.Tables[0].DefaultView;
                rdFileExplorer.Grid.MasterTableView.DataBind();

Its getting  error im unable to  assign the datakey names.

Can you please help me how to assign the datasource.


Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>