Page 1 of 1

PickList not working

Posted: 09 Jan 2020, 06:57
by maydinbil
<PickList v-model="personelList" dataKey="Id" :selection.sync="katilanlar" listStyle="height:342px" >
<template #sourceHeader>
Personeller
</template>
<template #targetHeader>
Katılanlar
</template>
<template #item="slotProps">
<div >
<div>{{slotProps.item.Ad}}</div>
</div>
</template>
</PickList

personelList=[{Id:1,Ad:'Mehmet AYDIN},{Id:2,Ad:'Ahmet AYDIN'}]
katilanlar:[]

But my pickList empty

Re: PickList not working

Posted: 10 Jan 2020, 14:22
by cagatay.civici
personelList should be a multidimensionalList;

Code: Select all

personelList=[[{Id:1,Ad:'Mehmet AYDIN},{Id:2,Ad:'Ahmet AYDIN'}],[]]
First array is the source, second is the target.

Re: PickList not working

Posted: 16 Jan 2020, 13:19
by maydinbil
Thanks . I change my list multidimensionalList it's work.

Re: PickList not working

Posted: 20 Jan 2020, 09:13
by cagatay.civici
Glad to hear.