Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-2812

onOpen event listener didn't trigger when using GroupsModel

XMLWordPrintable

    • ZK 7.0.7

      Reproducible steps:
      1. Click on the icon to open "group1".
      2. It is a bug if you didn't see any notification message.

      Reproducible sample:

      <zk>
      	<zscript><![CDATA[
      List head = new ArrayList();
      List data = new ArrayList();
      head.add("group1");
      head.add("group2");
      data.add(new ArrayList());
      data.add(new ArrayList());
      SimpleGroupsModel groupmodel = new SimpleGroupsModel(data, head);
      for (int i = 0, len = groupmodel.getGroupCount(); i < len; i++) {
      	groupmodel.removeOpenGroup(i);
      }
      	]]></zscript>
      	<grid model="${groupmodel}">
      		<columns>
      			<column label="Col" />
      		</columns>
      		<template name="model:group">
      			<group label="${each}" onOpen='Clients.showNotification("Open Group")' />
      		</template>
      		<template name="model">
      			<row>
      				<label value="${each}" />
      			</row>
      		</template>
      	</grid>
      </zk>
      

            DevChu DevChu
            vincentjian vincentjian
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days
                2d