Hi…
How can I refresh the master aspxgrid when you modify the aspxgrid that is in the detail?
thanks
Rolando
ASPxGridView - How to refresh a master grid when updating a detail grid
Answers approved by DevExpress Support
Hi Rolando,
Thanks for the project. I've reproduced your issue. The circularity occurs because you call the Refresh method in the EndCallback event handler. In this case after a roundtrip to the server, the EndCallback event is raised, you again send processing to the server, the EndCallback is raised again and so on…
To overcame this behavior, use some flag. For example:
ASPx<ClientSideEvents EndCallback="OnEndCallback" BeginCallback="OnBeginCallback"/>
JavaScriptvar command = "";
function OnBeginCallback(s, e) {
command = e.command;
}
function OnEndCallback(s, e) {
if (command == "ADDNEWROW") {
s.Refresh();
}
}
Thanks,
Marion
Rolando,
Thank you for informing us that the problem has been resolved.
If you need any further assistance on this subject, please feel free to ask us.
Regards
last question
when is validating anf fire
the e.RowError appear and gone (same problen whit unchequed)
my question is who is the command to rowvalidating?
Hello Rolando,
The ASPxGridView.RowValidating event is raised when a control with the CausesValidation property is clicked. By default, the Update button's CausesValidation property is set to true. You can set this property manually as you want.
Thanks,
Marion
Hello Rolando,
You may call the ASPxClientGridView.Refresh for the master grid in the EndCallback event handler of the detail grid.
Thanks,
Vest
Hi…
Please, could you explain me how to use "aspxclientgridview.refresh"?.. may be an example?
thanks
Rolando
Hi Rolando,
First, set the ClientInstanceName of your master GridView to a certain string (e.g. "masterGrid"). Then, you can handle the client-side EndCallback event of the detail GridView as follows:
<ClientSideEvents EndCallback="function(s, e) { masterGrid.Refresh(); }" />
Does this make sense?
Thanks,
Serge
thanks Serge.
You're always welcome, Rolando :)
the solution is good
but when the CellEditorInitialize event exits this fire manytimes (page_load too) this dont stop to stack overflow
helpme please
Hi Rolando,
This sounds rather odd. Could you please provide a sample illustrating this side-effect? I will try to figure out what's wrong.
Thanks,
Serge
the example…
when i press new in the grid inside the detailrow
thanks