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

The entire Grid is invalidated when adjusting models and a couple of components

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 6.0.0
    • Fix Version/s: 6.0.1
    • Component/s: None
    • Labels:
      None

      Description

      It seems that the entire Grid is invalidated when reloading data. This is not an MVVM issue, as it happens on the current demo also which makes use of EL.

      As a side effect to this the cursor in the textbox is set to the beginning. This causes a bad flow when trying to filter.

      I have attached a fully working sample of the issue, the sample uses maven and you can run it straight away.


      Here is the simplified code to replicate the issue. Type something and wait. Then, you'll see the textbox's content is cleared (which is wrong).

      <zk>
      <zscript>
      import org.zkoss.zktest.test2.select.models.*;
      ListModel model = ListModelArrays.getModel(ListModelArrays.DEFAULT);
      </zscript>
      <grid id="grid" model="${model}">
          <columns>
              <column label="Category"/>
          </columns>
          <auxhead>
          	<auxheader>
          		<textbox onChanging="grid.setModel(ListModelArrays.getModel(ListModelArrays.DEFAULT))"/>
          	</auxheader>
          </auxhead>
      </grid>
      </zk>
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              tmillsclare tmillsclare
              Votes:
              0 Vote for this issue
              Watchers:
              0 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 - 1 hour
                  1h