ListenListviewSetter

Content Type: Widget
Categories: User Interface

Overview

[DEPRECATED*] An easy of making sure that a listview - that is used in a listen-to construction - visually selects its first list element on the loading of the page. Making sure that users of the application immediately get the correct feedback with regards to which element is selected in a MasterDetail page. * Starting from Mendix version 7.22 this widget is no longer needed. The selections will be done for you by the platform widget out of the box.

Documentation

ListenListviewSetter widget

A very easy way of making sure that a listview - that is used in a listen-to construction - sets its first list element on a "selected" state when the page is loaded. Making sure that the users of the application get the correct feedback.

Contributing

For more information on contributing to this repository visit Contributing to a GitHub repository!

Description

The custom widget is linked to a listview that is used in a listen-to construction. At the moment, such a listview has no user feedback when loaded for the first time. Only after a user selects another item in the listview, the "selected" state will be applied. This widget makes sure that the first element of the list has the "selected" state, making it easy for users to see when a page is loaded

Implementation steps

  1. Give the listview that is used in the listen-to construction a unique name
  2. Add the custom widget after the listview and enter the name of the listview in its settings.
  3. Run the project.

Notes

The custom widget is just a UI extension to the way the listview with listen-to dataview already works: if the page is loaded, the first child is automatically selected. The only thing the custom widget adds is the classname that makes the selection visible. It is in no way suited for any special constructs in which the default behaviour of Mendix is overwritten.

Release Notes

Appstore 1.0 release:

  • initial version of the widget

Releases

Version: 1.0.1
Framework Version: 7.9.0
Release Notes: We now support IE11 too. (Fixes GitHub issue #1 and Support Ticket 82970)
Version: 1.0.0
Framework Version: 7.9.0
Release Notes: First release of the ListenListviewSetter for the appstore. Can be used in combination with listviews that are used in a a listen-to construction.