Jul 03, 2018, 12:03 PM
[CLOSED] Set Hide property of Ext control in Javascript with MVC version.
Hello,
In Ext 2.5 version we are using hide() property in javascript to hide an Ext control. But after migration with 4.5.1 same code not working in javascript level.
E.g. code written at .cshtml
In Ext 2.5 version we are using hide() property in javascript to hide an Ext control. But after migration with 4.5.1 same code not working in javascript level.
E.g. code written at .cshtml
X.ComboBox()
.ID("CmbData")
.AllowBlank(false)
.Editable(true)
.ForceSelection(true)
.QueryMode(DataLoadMode.Local)
.TriggerAction(TriggerAction.All)
.EmptyText("-- Select Status --")
.Items(new ListItem("Active", true),
new ListItem("Inactive", false))
);
Combobox accessed in javascript as below: if (Somecondtion==true)
App.CmbData.show();
else {
App.CmbData.hide();
}
Note: Server side we are able to hide the control by using Hidden property.
Last edited by fabricio.murta; Aug 01, 2018 at 12:40 PM.