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?
You can't put inline JavaScript to a client-side event handler of WebGrid, nor can you choose the parameters that are passed.
Instead, define a JavaScript function on your page that calls "alert('Hello')", and put the name of that function into the property you used. For instance:
function ultraWebGrid1_InitializeLayoutHandler(gridName){ alert('Hello');}
I've coded the way you explained. Then too I m facing the same issue.
I am using AJAX. The issue is occuring after using UpdatePanel (Ajax).
If I remove the UpdatePanel, every client side event is catching up properly.
Following is the error:
---------------------------Microsoft Internet Explorer---------------------------There is a problem with the event handler method: 'ultraWebGridApplication_InitializeLayout'.
Please check the method name's spelling.---------------------------
Pls suggest.
I have a usercontrol say Resource.ascx. It has a grid to which i have clientside events attached.
I use this usercontrol in one of aspx, say Home.aspx page.
Updatepanel is used in Home.aspx page.
When the page is rendered I get the following error: ---------------------------There is a problem with the event handler method: 'ultraWebGridApplication_InitializeLayout'. Please check the method name's spelling.---------------------------
When I View Source the page, I am unable to find the clientside function.
I tried putting the same clientside function in Home.aspx and removed the function from Resource.ascx. \
By doing this, the error no longer occurs. But this is not the solution as I am using the Resource.ascx user control in other aspx pages too.
This error is causing only when I use AJAX updatepanel.
Is this because, I am using the Resource.ascx in the Ultrawebtab which is in the home.aspx page?
kaushikjaimalani,
I see that you've submitted a support case with this same question (CAS-26450-CO3VO3). Given what's happening, I believe that handling this issue through the support case is the best approach, because it will likely take some research to find out what's happening and what resolutions are available.
Hello, Do you know if there is a workaround or correction?
I have exactly the same problem.
Thank you and regards
Hi, I also have the same problem, is there any workaround for this??
Thanks.
Hello,
Is there a solution to this problem. I have the same issue but with the AddNewRow() call and after clicking OK the method still adds a new row to my grid.