We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

call Javascript after Onload of Grid

Thread ID:

Created:

Updated:

Platform:

Replies:

101885 Nov 30,2011 09:22 AM UTC Dec 7,2011 05:12 AM UTC ASP.NET MVC (Classic) 3
loading
Tags: Grid
Sonam Mehta
Asked On November 30, 2011 09:22 AM UTC

Hi,

Can I call javascript function after grid loading (after onload of grid) has been completed?

Please provide me some example. Its urgent.

Best Regards,
Sonam




Eswari S [Syncfusion]
Replied On December 5, 2011 12:53 PM UTC

Hi Sonam,

Thank you for using Syncfusion products.

Query #1 : Can I call javascript function after grid loading (after onload of grid) has been completed?

Your requirement can be achieved by handling Client side “Onload” event. Please refer to the following code snippets:

<%=Html.Syncfusion().Grid("OrdersGrid")
. . . .
. . . ..

.ClientSideEvents(eve =>{
eve.OnLoad("GridLoad");
})


%>

[JavaScript]



Also, we can use “Sys.Application.add_load” after script manager to achieve your requirement. Please refer to the following code snippets:


. . . . .
. . . . . .

<%=Html.Syncfusion().ScriptManager() %>





For your convenience , we have prepared the sample and the same can be downloaded from the following link :

http://www.syncfusion.com/downloads/Support/DirectTrac/87446/Sample1545764701.zip


Note: If you want to run the sample in MVC3, change the configuration manager as Debug_MVC3/Release_MVC3.To briefly know about that steps please kindly refer this document link.

How to Switch between MVC2 to MVC3

Please try this and let us know if you need any further assistance.

Regards,
Eswari.S




Sonam Mehta
Replied On December 6, 2011 07:19 AM UTC

Hi Eswari,

Thank you for your support. I am able to resolve my problem.


Regards,
Sonam




Eswari S [Syncfusion]
Replied On December 7, 2011 05:12 AM UTC

Hi Sonam,

Thanks for the update.

Happy to hear that you have everything working . Do not hesitate to update if you have any questions.

Regards,
Eswari.S



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;