[FIXED] [#1617] [4.8.0] Button overflow menu - set icon class returns error

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [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 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.

Similar Threads

  1. Replies: 5
    Last Post: Oct 04, 2017, 12:52 AM
  2. Replies: 10
    Last Post: Feb 20, 2017, 1:51 PM
  3. Replies: 3
    Last Post: Dec 05, 2013, 5:47 AM
  4. Replies: 2
    Last Post: Feb 07, 2013, 11:40 AM
  5. Button in Toobar Overflow Error
    By asphugo in forum 1.x Help
    Replies: 1
    Last Post: Dec 22, 2010, 7:00 AM

Posting Permissions