-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Dear sir, I am new at Zk,Please help me I need,When i click the grid row,selected row shown as a popup with label name and value.
<grid id="displayref" visible="true" model="@load(vm.gridLists)" sizedByContent="true"
span="true" emptyMessage="No Records Found." height="250px">
<columns sizable="true">
<column align="center" width="140px">Referal Name</column>
<column align="center" width="215px">Referral Email-id</column>
<column align="center" width="120px">Contact Number </column>
<column align="center" width="135px">Project Type</column>
<column align="center" width="120px">Project Name</column>
<column align="center" width="120px">Send me a copy</column>
</columns>
<template name="model">
<row popup="detail_${each.referID}, position=end_before" style="cursor:pointer">
<label value="@load(each.referalname)" />
<label value="@load(each.referalemail)" />
<label value="@load(each.contactnumber)" />
<label value="@load(each.projecttype)" />
<label value="@load(each.projectname)" />
<label value="@load(each.sendmeacopy)"/>
</row>
</template>
</grid>
The above given file belongs to zul file grid. please provide me code for how to display popup a selected row.
If you want to do a popup=""
that must reference to an id of a real popup element in your zul.
example (out of mine head so its not tested so if it won't work let me know) :
<row popup="${forEachStatus.index}, position=end_before" style="cursor:pointer">
<popup id="${forEachStatus.index}">
<label value="@load(each.referalname)"/>
</popup>
<label value="@load(each.referalname)" />
<label value="@load(each.referalemail)" />
<label value="@load(each.contactnumber)" />
<label value="@load(each.projecttype)" />
<label value="@load(each.projectname)" />
<label value="@load(each.sendmeacopy)"/>
</row>
special attention : You have to make sure that your ID of the menuPopup is unique. That's why I use here the forEachStatus.index.
Greetz chill.
Asked: 2014-04-21 13:04:40 +0800
Seen: 26 times
Last updated: Apr 22 '14