Apr 02, 2015, 7:07 AM
[CLOSED] Success Event Handler for Label with Combo editor
Hi,
I have a Label with combo editor. On Combo value change I am calling a direct method - changeInstitute. How do i handle the success of the "changeInstitute" ? I could not find something like - de.Complete.Success. Please assist.
I have a Label with combo editor. On Combo value change I am calling a direct method - changeInstitute. How do i handle the success of the "changeInstitute" ? I could not find something like - de.Complete.Success. Please assist.
@(Html.X().Label()
.ID("AjaxLabel")
.Text((string)(Model.DefaultInstituteName))
.Editor(e => e.Add(
Html.X().Editor()
.ID("InstituteLabel")
.Shadow(false)
.Alignment("tl-tl?")
.UpdateEl(false)
.Width(400)
.Field(f => f.Add(
Html.X().ComboBox().ID("drpSearchInstitute").Name("drpSearchInstitute")
.Editable(false)
.QueryMode(DataLoadMode.Local)
.ForceSelection(false)
.TriggerAction(TriggerAction.All)
.DisplayField("InstitutionName")
.ValueField("InstitutionId")
.EmptyText("select Campus...")
.Store(Html.X().Store()
.Model(Html.X().Model()
.IDProperty("InstitutionId")
.Fields(
new ModelField("InstitutionId", ModelFieldType.Int) { Mapping = "InstitutionId" },
new ModelField("InstitutionName", ModelFieldType.String) { Mapping = "InstitutionName" }
)
)
.DataSource(Model.InstituteList)
)
//.Cls("x-form-field-editor")
//
))
.DirectEvents(de =>
{
de.Complete.Url = Url.Action("changeInstitute");
de.Complete.EventMask.ShowMask = true;
de.Complete.EventMask.Target = MaskTarget.CustomTarget;
de.Complete.ExtraParams.Add(new Parameter("value", "value", ParameterMode.Raw));
})
)
))
Last edited by Daniil; Apr 07, 2015 at 2:00 PM.
Reason: [CLOSED]