I have changed ultrawebgrid to webdatagrid and changes most of the events apply in the webdatagrid.
But XmlHTTPResponse client event not found in webdatagrid. I have javascript function for that
Please help me here, how to use above event after triggering entering edit mode event?
If any sample code please share with me.
Krishna,
The code provided is generic enough that it doesn't show anything specific that you are doing so all I can suggest is to use the events that the grid provides to do what you may be attempting to do. For handling errors, you may want to see if the AJAXResponseError even meets your needs.
For the else condition in the provided code, it is more likely that if you need logic on the client after a row is added, updated, or deleted that you should use the EditingClientEvents that are exposed by the EditingCore behavior as there are events for before and after each action. The events ending in "ing" are before and the events ending in "ed" are after the action has happened. For example see the RowDeleted event for some more details.
Note that the approach that you should take when converting from the UltraWebGrid to the WebDataGrid is to start with the functionality that you need from the grid and look at how to accomplish that with the WebDataGrid. If you start with the code that you used for the UltraWebGrid, you may actually overlook better solutions and create more work for yourself.
Rather than asking what event maps to an event in the UltraWebGrid, a better question is to ask about the behavior that you need like "how do I take action on the client after a row has been added, updated, or deleted?" This would help us to provide you with the the relevant events on the EditingCore in the first response.
Hi Alan,
Thanks for the response.
We are basically trying to handle row operations like
if (gridResponse.ResponseStatus == grid.eError.LoadFailed) { switch (gridResponse.ReqType) {
case grid.eReqType.MoreRows:
case grid.eReqType.ChildRows:
show error message case grid.eReqType.DeleteRow:
show error message case grid.eReqType.UpdateCell:
show error message case grid.eReqType.AddNewRow:
show error message case grid.eReqType.UpdateRow:
show error message default: } } else { switch (gridResponse.ReqType) { case grid.eReqType.DeleteRow:
do something here.. case grid.eReqType.AddNewRow:
do something here..
case grid.eReqType.UpdateRow:
Do something here.....
So can you please suggest me an event or a way to handle this scenario.
Thank you so much for your help.
The AJAXResponse event is probably the closest of the WebDataGrid client side events. Note that this also depends on what you were doing with the UltraWebGrid and if you were making custom asynchronous requests by calling invokeXmlHttpRequest and handling the response, it would be better to write your own AJAX calls external to the grid.
Hi there,
I am trying to convert UltraWebGrid control to WebDataGrid control.
I have a javascript handler XmlHttpResponse(gridId, RowId, gridResponse) which is called for the CliendSideEvent based on XmlHttpResponse.
Could you please let me know what is the equivalent client event in WebDataGrid?
Thanks for your help.