[OPEN] [#237] Splitbutton navigation functionality

  1. #1

    [OPEN] [#237] Splitbutton navigation functionality

    Hi,
    I have a splitbutton with three menuitems. I am creating this splitbutton in the code behind:

    Dim split As New Ext.Net.SplitButton()
    split.ID = "Split" + kvp.Key + "ID"
    split.Text = kvp.Key
    split.AutoPostBack = False
    split.Href = kvp.Value
    split.HrefTarget = "_self"
    The menuitems do look the same and work fine.

    However, if I click the splitbutton itself, it does not react, but I can see the href URL on mouseover in my browser bottombar.
    What might be the problem with this one?
    Last edited by Daniil; May 14, 2013 at 2:00 PM. Reason: [OPEN] [#237]
  2. #2
    Hi @blueworld,

    Currently, a SplitButton doesn't support the href functionality. I reported to Sencha.
    http://www.sencha.com/forum/showthread.php?263622

    For now I can suggest the following fix.

    Fix
    Ext.button.Split.override({
        onClick: function (e, t) {
            var me = this;
    
            //e.preventDefault(); // this prevents href functionality
            if (!me.disabled) {
                if (me.overMenuTrigger) {
                    me.maybeShowMenu();
                    me.fireEvent("arrowclick", me, e);
                    if (me.arrowHandler) {
                        me.arrowHandler.call(me.scope || me, me, e);
                    }
                } else {
                    me.doToggle();
                    me.fireHandler(e);
                }
            }
        }
    });
    Please tell if you face any issue with this fix.
  3. #3
    Sencha opened a bug.

    We created an Issue to track this defect.
    https://github.com/extnet/Ext.NET/issues/237
  4. #4

Similar Threads

  1. [CLOSED] Setting SplitButton text
    By cwolcott in forum 2.x Legacy Premium Help
    Replies: 10
    Last Post: Oct 20, 2012, 1:30 AM
  2. [1.0] Splitbutton and keyboard usage
    By plykkegaard in forum 1.x Help
    Replies: 0
    Last Post: Feb 14, 2011, 11:36 AM
  3. [8.1] Splitbutton in gridpanel
    By plykkegaard in forum 1.x Help
    Replies: 0
    Last Post: Oct 29, 2009, 5:13 PM
  4. [Q] Howto do a postback using a splitbutton?
    By plykkegaard in forum 1.x Help
    Replies: 2
    Last Post: Apr 08, 2009, 6:15 AM
  5. [CLOSED] DateMenu in a SplitButton
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Dec 15, 2008, 3:25 PM

Posting Permissions