Apr 11, 2013, 1:31 PM
[CLOSED] Formpanel Button: Disable auto submit
Hi,
I have a formpanel containing some fields and a button with a direct click event. My intention is to submit only the changed field values via JSON:
I have a formpanel containing some fields and a button with a direct click event. My intention is to submit only the changed field values via JSON:
@(Html.X().Button()
.Text("Save")
.DirectEvents(e =>
{
e.Click.Url = Url.Action("SaveForm", "Form");
e.Click.ExtraParams.Add(new Ext.Net.Parameter("formData", "Ext.encode(Ext.getCmp("MyFormPanel").getForm().getValues(false, true))", ParameterMode.Raw));
})
)
However, as stated somewhere else all field values get submitted as additional post parameter automatically. Is there a way to disable this behaviour somehow?
Last edited by Daniil; Apr 11, 2013 at 5:01 PM.
Reason: [CLOSED]