@Html.DevExpress().CallbackPanel(settings => {
settings.Name = "myCallback";
settings.CallbackRouteValues = new { Controller="Foo", Action="Bar" };
settings.SetContent(() => {});
}).GetHtml()
These are not as life and death vital in MVC as they are in web forms. I wrote the code above seventeen days ago, never got it working, and have never needed it since. In MVC implementations of DevExpress controls one may just call out to other controls to make them refresh without a helper wrapper around everything. You don't need this stuff. You may make the callback happen from, for example, the change of a ComboBox control like so:
settings.Properties.ClientSideEvents.SelectedIndexChanged = "function(s,e){
myCallback.PerformCallback(); }";
No comments:
Post a Comment