Hi Guys,
I am using the data subset to fetch the data to interface but the total count of rows are automatically showing in the interface. It might be identifier as well not sure why the count is showing ? Please suggest how to remove the items from interface? Please find the below screenshot for reference?
Discussion posts and replies are publicly visible
There is the parameter called totalCount in a!gridLayout() if you are not giving it will not show.
Thanks for quick response, But I am not using gridlayout. Please refer below screenshot
Got it. Yes its by default showing. I tried with page Size, instead of total count it shows paging.
a!localVariables( local!employees: { a!map( id: 1, firstName: "John" , lastName: "Smith" , department: "Engineering" , title: "Director" , phoneNumber: "555-123-4567" , startDate: today()-360 ), a!map( id: 2, firstName: "Michael" , lastName: "Johnson" , department: "Finance" , title: "Analyst" , phoneNumber: "555-987-6543" , startDate: today()-360 ), a!map( id: 3, firstName: "Mary", lastName: "Reed" , department: "Engineering" , title: "Software Engineer" , phoneNumber: "555-456-0123" , startDate: today()-240 ), a!map( id: 1, firstName: "John" , lastName: "Smith" , department: "Engineering" , title: "Director" , phoneNumber: "555-123-4567" , startDate: today()-360 ), a!map( id: 2, firstName: "Michael" , lastName: "Johnson" , department: "Finance" , title: "Analyst" , phoneNumber: "555-987-6543" , startDate: today()-360 ), a!map( id: 3, firstName: "Mary", lastName: "Reed" , department: "Engineering" , title: "Software Engineer" , phoneNumber: "555-456-0123" , startDate: today()-240 ), a!map( id: 1, firstName: "John" , lastName: "Smith" , department: "Engineering" , title: "Director" , phoneNumber: "555-123-4567" , startDate: today()-360 ), a!map( id: 2, firstName: "Michael" , lastName: "Johnson" , department: "Finance" , title: "Analyst" , phoneNumber: "555-987-6543" , startDate: today()-360 ), a!map( id: 3, firstName: "Mary", lastName: "Reed" , department: "Engineering" , title: "Software Engineer" , phoneNumber: "555-456-0123" , startDate: today()-240 ), }, a!gridField( pageSize:7, data:todatasubset( local!employees, fv!pagingInfo ), columns:a!gridColumn( value:fv!row.id ) ) )
If your grid is static in nature, with no intention to use paging / sorting functionality, you would probably be better off using an Editable Grid (and just... not having any fields be editable).
Yes. It's showing default , So how to hide the default value ?
As Mike said you can use editable grid and make all as read-only and set total count as null or zero