Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2165
Display message for empty grid.
posted

How to display a message or show an image in the igGrid when there is no data source or the data source contains no rows?

Parents
  • 23953
    Offline posted

    Hello Luis,

    I'm attaching a sample to demonstrate how you can achieve this functionality. Basically I bind to the igGrid.rowsRendered event and check whether the data source has no data. In this case I append a DIV element to the grid which will show on top of the grid with a custom message. To do this I use a small constructor function which exports the show/hide methods so that the message can be hidden as well.

    Hope this helps,
    Martin Pavlov
    Infragistics, Inc. 

    igGrid_noData_customMessage.zip
Reply Children
No Data