How to detect when the grid appears on the page?

I need to detect when grid with data is displayed on the page. I've checked grid events but not found any fired when the grid is displayed on the page.
Any help will be appreciated.

3 Replies

MF Mohammed Farook J Syncfusion Team October 18, 2018 12:02 PM UTC

Hi Robert, 
 
Thanks for contacting Syncfusion support. 
 
From your query we found that you want to trigger any Grid event after the initial Grid rendering. So we suggest you to use dataBound event of the Grid to achieve your requirement. This event triggers when data is populated to the Grid. 
 
Code snippet: 
 
@Html.EJS().Grid("Grid").DataSource((IEnumerable<object>)ViewBag.data).Columns(col=> { 
 
         ... 
 
}).AllowPaging().DataBound("dataBound").Render() 
 
<script type="text/javascript"> 
    function dataBound(args){ 
 
        // place your code here. 
 
    } 
</script> 
 
 
Refer the following link to know about dataBound event of the Grid: 
 
 
If still this is not meet your requirement, could you please explain more details about your requirement. 
 
 
Regards, 
J Mohammed Farook 



RO Robert October 18, 2018 05:49 PM UTC

Thank you very much for your help


MS Madhu Sudhanan P Syncfusion Team October 19, 2018 05:02 AM UTC

Hi Robert, 
Thanks for the update. Please get back to us if you need further assistance. 
Regards, 
Madhu Sudhanan P 


Loader.
Up arrow icon