Adding a date column

2 posts, 0 answers
  1. Paul
    Paul avatar
    28 posts
    Member since:
    May 2016

    Posted 15 Aug 2016 Link to this post

    Hi I have added a date column using 

             // Add a new column for the date
                    GridTemplateColumn gridTemplateColumn1 = new GridTemplateColumn();
                    gridTemplateColumn1.HeaderText = "Creation Date";
                    gridTemplateColumn1.SortExpression = "Date";
                    gridTemplateColumn1.UniqueName = "Date";
                    gridTemplateColumn1.DataField = "Date";
                    RadFileExplorer1.Grid.Columns.Add(gridTemplateColumn1);

     

    But i cant see how to populate the column. 

     

  2. Vessy
    Admin
    Vessy avatar
    1541 posts

    Posted 15 Aug 2016 Link to this post

    Hi Paul,

    The data populated in a custom column in the FileExplorer's Grid should be passed in the control's custom content provider like demonstrated here:
    http://demos.telerik.com/aspnet-ajax/fileexplorer/examples/applicationscenarios/customgridcolumns/defaultcs.aspx


    Regards,
    Vessy
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top