Hi Vladimir,
Originally Posted by
Vladimir
You should set it for DirectEvent which call actions with PartialViewResult
Below, follows a small adapted sample of the case, that I am trying and it is not working.
Please, note that I included the Click.Type in the DirectEvent, but not solved the issue:
var X = Html.X();
X.FormPanel()
.Layout(LayoutType.VBox)
.Items(
X.Container()
.Layout(LayoutType.HBox)
.Items(
X.TextFieldFor(s => s.FieldA),
X.TextFieldFor(s => s.FieldB),
X.Button().Icon(Icon.Find)
.DirectEvents(de =>
{
de.Click.Type = DirectEventType.Load;
de.Click.Url = Url.Action(MVC.MyArea.MyController.MyAction());
de.Click.EventMask.ShowMask = true;
de.Click.ExtraParams.Add(new { extraParmXXX = "D" });
})
),
X.Container()
.Layout(LayoutType.HBox)
.Items(
X.FileUploadField().Icon(Icon.Attach).ID("file1"),
X.FileUploadField().Icon(Icon.Attach).ID("file2")
)
);