Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bert Detailleur 17 posts 117 karma points
    May 17, 2018 @ 09:57
    Bert Detailleur
    0

    Is getting prevalues from dropdownlist trough javascript possible? -Listview, dropdownId

    Hi All

    I'm having trouble with the following:

    I have a listview displaying some data. My objects in the list contain a property called status, which is filled out by selecting a value from a dropdownlist.

    In this listview, looking at the status column, only the Id is displayed instead of the actual selected value. enter image description here

    Is there a way to resolve this?

    An option I see is to write a javascript function in the listiewcontroller that can return these values by providing it the id like so:

    function getSelectedValueFromDropDown(dropdownId, selectedId) {
           //connect to umbraco to fetch values
        }
    

    is a function like this already implemented in a service?

    Thanks for your time!

    /Bert

  • Dave Woestenborghs 2847 posts 8817 karma points MVP 3x admin c-trib
    May 17, 2018 @ 14:03
    Dave Woestenborghs
    100

    Hi Bert,

    Don't think that is possible using the built in list view.

    But the good news is that you can create your own list views.

    Have a look here for a good example : https://24days.in/umbraco-cms/2016/custom-list-view-layouts/

    Dave

  • Bert Detailleur 17 posts 117 karma points
    May 18, 2018 @ 07:25
    Bert Detailleur
    0

    Hi Dave

    It seems that the custom listview is indeed the solution to my problem.

    Thanks for the information!

    Bert

Please Sign in or register to post replies

Write your reply to:

Draft