+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Add column in backend grid list for FlatTaxon field

Add column in backend grid list for FlatTaxon field

5 posts, 0 answered
  1. Ethan
    Ethan avatar
    13 posts
    Registered:
    28 May 2014
    29 Sep 2014
    Link to this post

    In a dynamic module I have an item with a required FlatTaxon field that is restricted to 1 tag selection. I would like to add a column in the backend grid list for the dynamic module that would show the title of the applied taxon. I already see a list of these tags in the sidebar that I can click to filter to items with the clicked tag, but I would like to be able to see the tag inline with the item in the grid.

  2. Ethan
    Ethan avatar
    13 posts
    Registered:
    28 May 2014
    29 Sep 2014
    Link to this post

    I'm able to get the GUID representation of the selected tag by going to Settings -> advanced -> Dynamic Modules -> Controls -> [My Dynamic Type] -> Views -> Backend List -> View Modes -> Grid -> Columns and adding a Data Column with a template of <span>{{mytaxonomy}}</span> but I really need to show the title of the taxon the GUID is referencing.

  3. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    06 Dec 2016
    02 Oct 2014
    Link to this post
    Hello Ethan,

    Thank you for using our services.

    By default the model returned form the service operating with Dynamic Content will contain only the ID of the selected taxa (as they are heavy objects and will otherwise degrade the performance, since they're not displayed on the grid by default). Can you please let us know if this functionality is critical for your project? We can prepare a sample demonstrating who you can plug to the backend grid and call a custom service resolving this taxon's title, however as previously mentioned this might affect the speed of loading the gird.
    Looking forwards to your reply.

    Regards,
    Boyan Barnev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  4. Ethan
    Ethan avatar
    13 posts
    Registered:
    28 May 2014
    02 Oct 2014 in reply to Boyan Barnev
    Link to this post

    Thanks for the reply, Boyan.

     This isn't critical functionality, as the title of the items is probably going to be descriptive enough and the filtering by taxa in the sidebar will suffice for verifying the right tags are on the right items. I would however greatly appreciate you "pointing me in the right direction" on adding a column to the grid that calls a service of any kind to display a value, as I think this would be great knowledge for other use cases as well. It can be very generic, just need to know which kind of column to add (from the advanced settings area I mentioned earlier) and what properties have to be set.

     Thanks!

  5. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    02 Oct 2014
    Link to this post

    Hey @Boyan

      Georgi tweeted the MB was getting some small updates in the next release...how about we just go ahead and fix this issue too? ... :)

    Nobody wants to hack it in

5 posts, 0 answered