How to know when all controls are loaded?

Hello, I have a page with some syncfusion controls, so, how can I know when all those controls are loaded?

Thanks.

3 Replies

BS Balaji Sekar Syncfusion Team February 25, 2020 07:07 AM UTC

Hi Neider, 
 
Thanks for contacting us. 
 
Before providing a solution, could you please share the list of Syncfusion controls used in that page?, so that we can provide appropriate events based on the controls. 
 
Regards, 
Balaji Sekar. 



NE Neider February 27, 2020 04:30 PM UTC

I'm using 4 grid controls and 1 tab control, and I have a javascript method that loads the information of all grids, so for that reason, I need to know the time when all grids are created in order to call the javascript method and populate all grids. Thanks


GR Gokul Ramalingam Syncfusion Team February 28, 2020 12:31 PM UTC

Hi Neider, 

Thanks for your update. 

Query: I need to know the time when all grids are created in order to call the javascript method ? 
 
Based on your query we suspect that you need to call a javascript method after the Grid control is rendered. We suggest you to use the created event of Grid. Created event triggers when the component is rendered. In this event you can call the javascript method. Please refer to the below code snippet for more information. 

<ejs-grid id="Grid" dataSource=ViewBag.data created="onCreated1" allowFiltering="true" allowPaging="true"> 
    <e-grid-columns
        <e-grid-column field="OrderID" headerText="Order ID" isPrimaryKey="true" textAlign="Right" width="120"></e-grid-column
    </e-grid-columns
</ejs-grid

<script> 
    function onCreated1() { 
         
       // Your code here 

    } 
</script> 


We have prepared a sample of your requirement. Please find the sample link. 


Please get back to us if you need further assistance. 

Regards, 
Gokul R 


Loader.
Up arrow icon