Jun 10, 2014, 7:28 PM
[CLOSED] Set button enable true or false MVC
My Button code
currently I do if Permission_Edit is false then I convert it to true and if Permission_Edit true then I convert it to false,I not get any example to do this with Enable property of button.
please help me to do this with enable property
Html.X().Button()
.ID("btnEdit")
.Text("Edit record")
.Icon(Icon.ApplicationEdit)
.Disabled(_PagePermission.Permission_Edit)
.DirectEvents(de =>
{
de.Click.Action = "Edit";
de.Click.EventMask.ShowMask = true;
de.Click.ExtraParams.Add(new Parameter()
{
Name = "selected",
Value = "App.GridPanel1.getSelectionSubmit().getSelectionModelField().getValue()",
Mode = ParameterMode.Raw
});
})
currently I do if Permission_Edit is false then I convert it to true and if Permission_Edit true then I convert it to false,I not get any example to do this with Enable property of button.
please help me to do this with enable property
Last edited by Daniil; Jun 17, 2014 at 11:40 AM.
Reason: [CLOSED]