This is a migrated thread and some comments may be shown as answers.

Missing grid message when sized down

1 Answer 70 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Veteran
Iron
Eric asked on 20 May 2020, 03:16 PM
I was using Kendo MVC v2013.2.918 for a while, and for a particular grid that happens to be kind of narrow, when there were no elements in the grid it displayed like this, where it states “No items to display”.

<OriginalWithMessage.jpg>


I upgraded to Kendo MVC v2020.2.513 and now it looks like this, where the “No items to display” message is missing.

<UpgradedMissingMessage.jpg>


Just to show that the message is still there, but not displayed, I forced the grid to be wider temporarily.

<UpgradedStretchedShowsMessage.jpg>

I really want that “No items to display” message to show, even when the grid is narrow.  I have tried disabling all other paging features, but it still doesn’t show.  Is this something in the styles that could be changed to give this message display?

1 Answer, 1 is accepted

Sort by
0
Accepted
Petar
Telerik team
answered on 22 May 2020, 09:14 AM

Hi Eric,

The reason why the "No items to display" message disappears is that by default the Grid's "pageable.responsive" property is set to "true".  This configuration changes the way the pager of the Grid appears when the size of the component is small.

If you add the below configuration to your Grid's definition, the "No items to display" message should not disappear when resizing the component.

.Pageable(pageable => pageable
           .Responsive(false)
)

Regards,
Petar
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Grid
Asked by
Eric
Top achievements
Rank 1
Veteran
Iron
Answers by
Petar
Telerik team
Share this question
or