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
415
How to check if grid has no records
posted

I am new to IgniteUI. I want to show a message on the grid if no record is found in the recordset. What feature I should use? My code is below:

@(Html.Infragistics().Grid(Model.BusinessAssociates.AsQueryable()) .DataBind() .Render() )

 

Please help.

  • 49378
    posted

    Hello Sarojanand,

    In this scenario I would suggest handling the grid'sdataBoundevent and checking the number of items in the data source using something similar to:

    $("#grid").igGrid("option", "dataSource").length

    More useful information on igGrid's exposed events and options may be found at:

    http://help.infragistics.com/jQuery/2013.1/ui.iggrid

    Please do not hesitate to contact me if you have any further questions.