Adding a date column

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

    Posted 15 Aug 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
    1380 posts

    Posted 15 Aug 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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top