Nov 02, 2018, 3:10 PM
[FIXED] [#1617] [4.8.0] Button overflow menu - set icon class returns error
Hello support team,
when the window is wide enough to display the button, everything works well. However, if the window is shrunk, I get an error
An overflow menu item icon should correspond with the button icon.
Is there any workaround available? Thank you.
Dan
when the window is wide enough to display the button, everything works well. However, if the window is shrunk, I get an error
this.getIconCls is not a function
when clicking an overflow menu item:@{
Layout = null;
var X = Html.X();
}
@(Html.X().ResourceManager())
@(
X.Window().Width(200).Height(180).DockedItems(
X.Toolbar()
.Border(false)
.Dock(Dock.Top)
.EnableOverflow(true)
.Items(
X.ButtonGroup()
.Title("Remove")
.Items(
X.Button()
.Text("Active")
.OverflowText("Active")
.IconCls("#BulletCross")
.Scale(ButtonScale.Large)
.EnableToggle(true)
.OnClientClick("this.setIconCls(this.pressed ? '#BulletTick' : '#BulletCross');")
)
)
)
) )
The same error keeps occurring even if the window is enlarged to the original size.An overflow menu item icon should correspond with the button icon.
Is there any workaround available? Thank you.
Dan
Last edited by fabricio.murta; Feb 20, 2019 at 2:48 AM.