Hi Iana,
may is ask you a favor. Could you help me to understand your example better?
(see also http://demos.telerik.com/aspnet-ajax/grid/examples/client/insertupdatedelete/defaultcs.aspx)
In both examples the aspx page has a javascript function
updateChanges which calls the webservice:
As you can see two parameters [
getValues() and
updateGrid] are passed into the UpdateEmployeeByEmployee-Web-Method. But as far as i can tell the webservice-method has only 1 parameter (
Employee):
I see (now) that the button SaveChanges fires the js-function
updateChanges(). Which calls the Webservice.
But how does the js-function
updateGrid(
result) and the Webservice work together since the web method has only 1 parameter employee?
Where is the parameter
result defined / filled?
I do understand most parts but do not understand the whole chain of commands / events.
Button SaveChanges triggers the js-function
updateChanges which calls the
webservice UpdateEmployeeByEmployee and passes 2 parameters (instead of 1).
But how is it possible that
UpdateEmployeeByEmployee takes 2 arguments if the method in the asmx-file / the MyWebService.cs file has only 1 argument.
And what is the consequence of adding empList to HttpContext?
HttpContext.Current.Session[
"MyData"
] = empList;
Since the WebMethod retunrs empList how does this get passed to the RadGrid1 and how does the grid get updated.
Best regards and thanks a lot
M.