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.
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?
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.
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:
is a function like this already implemented in a service?
Thanks for your time!
/Bert
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
Hi Dave
It seems that the custom listview is indeed the solution to my problem.
Thanks for the information!
Bert
is working on a reply...