Display message when data grid (!!) is empty

0
Hi all   I want to display a message to the user when there are no objects in a data grid. I know that you can use the empty list placeholder widget from the marketplace but this one doesn’t work on the dara grid.   What I have is this:   What I want is this:   Can I do that with a data grid? Or do I have to use a listview (which I don’t necessarily want)?   Thanks
asked
3 answers
1

If you want to use this type of datagrid, you need to specify a helper object that can keep track of the object count. Create a dataview that includes that count in an attribute. Put the datagrid within that dataview and use visible conditions to show the datagrid based on the expression:

$dataviewHelperObject/CountObjects > 0

 

answered
1

Consider upgrading to Datagrid 2. It has empty state functionality out-of-the-box. You can find it in the data widgets module.

answered
1

If you are looking to prettify you page, consider using the badge of the tab to show the number of objects.

Where test is the attribute Ruud suggested to create

answered