Hi,
I'm trying to add a clientside script to my grid which will fire upon initialization. I've added the following in Page_Load:
this.UltraWebGrid1.DisplayLayout.ClientSideEvents.InitializeLayoutHandler = "alert('Hello')";
The alert is displayed allright, but after the alert I get a pop-up saying: "There is a problem with the event handler method: 'alert('Hello')'. Please check the method name's spelling."
Anyone knows what I am doing wrong?
Could you provide sample application or code snippet used in this page ?
Do you mean application is working fine in fire fox with AJAX also?
Yes
Could you try removing initialize event handler from java script and add update panel? What happens in that case?
It works fine.
What I feel is when we use AJAX update panel, it also add some java script. And that script throws error when some setting is missing.
No. If I remove the Ajax Update panel, the code is working fine.
When I put the update panel, the client side event's are not working properly.
I checked the application on Firefox and it is working properly without any errors.
Pls suggest.
This error generally occurs when there is a syntax error in java script.
You can use mozilla fire fox’s extension FireBug to detect such errors.
Or if you provide sample, I could check for it.
Greetings