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 12 posts 92 karma points
    6 days ago
    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 2691 posts 8074 karma points MVP 2x admin c-trib
    6 days ago
    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 12 posts 92 karma points
    5 days ago
    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