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

onOpen event listener didn't trigger when using GroupsModel

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 7.0.5
    • Fix Version/s: 7.0.6
    • Component/s: Components
    • Security Level: Jimmy
    • gh.sprint.customfield.default.name:
      ZK 7.0.7

      Description

      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>
      

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

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