Display metadata selected item.

5 posts, 0 answers
  1. Ole Oscar
    Ole Oscar avatar
    15 posts
    Member since:
    Jan 2015

    Posted 02 Mar 2017 Link to this post

    Hi,

    I am trying to use your file explorer and add some metadata to each file. Kind of simple archive.

    I have attached a screenshot.

    When the user select a file the meta data should be displayed on the right side.

    I have problems with posting back and find the selected file to display the metadata for.

    Rgds

    Ole Oscar Johnsen

  2. Ole Oscar
    Ole Oscar avatar
    15 posts
    Member since:
    Jan 2015

    Posted 03 Mar 2017 in reply to Ole Oscar Link to this post

    I found the solution in this post.

    http://www.telerik.com/forums/vista-like-file-explore

     

  3. Vessy
    Admin
    Vessy avatar
    1756 posts

    Posted 07 Mar 2017 Link to this post

    Hi Ole,

    You can also take  a look at the following demo demonstrating how to add custom attributes to the FileItems of RadFileExplorer and use this data in the Grid:
    http://demos.telerik.com/aspnet-ajax/fileexplorer/examples/applicationscenarios/customgridcolumns/defaultcs.aspx


    Regards,
    Vessy
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  4. Ole Oscar
    Ole Oscar avatar
    15 posts
    Member since:
    Jan 2015

    Posted 07 Mar 2017 in reply to Vessy Link to this post

    Hi,

    The problem with that is that demo is that it only supports what you can fit into the grid. I need more, like description(multiple languages) and so. That's the reason I need a form, instead of columns in a grid.

    Rgds

    Ole Oscar Johnsen

  5. Vessy
    Admin
    Vessy avatar
    1756 posts

    Posted 08 Mar 2017 Link to this post

    Hi Ole,

    Indeed in the demo context we are using the added custom attributes in order to create a new column with this data (fileItem.Attributes.Add("Owner", ownerName)), but you can freely access the same info through the fileitem's client object and use its value after that:
    $find("RadFileExplorer1").get_grid().get_masterTableView().get_selectedItems()[0].get_dataItem().Attributes.Date

    Of course, this was only a suggestion and you can use the already found solution in case it fits your scenario better.

    Kind regards,
    Vessy
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top