-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1 | initial version | |
Hi! I'm tying to reproduce combobox inline editing feature, like in Inline Editing (Grid) demo. Here is part of my view:
<grid id="hypothesisMainGrid"
model="@load(vm.curUserHyps)"
mold="paging" pageSize="4"
pagingPosition="bottom" hflex="1">
<columns>
<column label="Номер" />
<column label="Статус" />
</columns>
<template name="model">
<row>
<label value="@load(each.hypId)" width="99%" />
<combobox
readonly="true" model="@load(vm.hypStatusList)"
selectedItem="@bind(each.hypothesisStatus)"
hflex="1"
inplace="true">
<template
name="model">
<comboitem
label="@load(each.name)" value="@load(status)" />
</template>
</combobox>
</row>
</template>
</grid>
The trouble is that selecting some item in combobox causes all items in grid model to change correspondig field.
Why this can happen? I use ZK 6.5.2 CE. Thanks in advance, Max
2 | No.2 Revision |
Hi! I'm tying to reproduce combobox inline editing feature, like in Inline Editing (Grid) demo. Here is part of my view:
<grid id="hypothesisMainGrid"
model="@load(vm.curUserHyps)"
mold="paging" pageSize="4"
pagingPosition="bottom" hflex="1">
<columns>
<column label="Номер" />
<column label="Статус" />
</columns>
<template name="model">
<row>
<label value="@load(each.hypId)" width="99%" />
<combobox
readonly="true" model="@load(vm.hypStatusList)"
selectedItem="@bind(each.hypothesisStatus)"
hflex="1"
inplace="true">
<template
name="model">
<comboitem
label="@load(each.name)" value="@load(status)" />
</template>
</combobox>
</row>
</template>
</grid>
The trouble is that selecting some item in combobox causes all items in grid model to change correspondig field.
field (please see screen here).
Why this can happen? I use ZK 6.5.2 CE. Thanks in advance, Max
3 | No.3 Revision |
Hi! I'm tying to reproduce combobox inline editing feature, like in Inline Editing (Grid) demo. Here is part of my view:
<grid id="hypothesisMainGrid"
model="@load(vm.curUserHyps)"
mold="paging" pageSize="4"
pagingPosition="bottom" hflex="1">
<columns>
<column label="Номер" />
<column label="Статус" />
</columns>
<template name="model">
<row>
<label value="@load(each.hypId)" width="99%" />
<combobox
readonly="true" model="@load(vm.hypStatusList)"
selectedItem="@bind(each.hypothesisStatus)"
hflex="1"
inplace="true">
<template
name="model">
<comboitem
label="@load(each.name)" value="@load(status)" />
</template>
</combobox>
</row>
</template>
</grid>
The trouble is that selecting some item in combobox causes all items in grid model to change correspondig field (please (hypothesisStatus). Please see screen here).).
The same happens with listbox.
Why this can happen? I use ZK 6.5.2 CE. Thanks in advance, Max