[CLOSED] combobox with forceselection and change listener + listeners for hidden buttons

  1. #1

    [CLOSED] combobox with forceselection and change listener + listeners for hidden buttons

    Hello,
    1.
    I noticed that if a Button is hidden in definition, and then made visible, the events in Listeners doesn't raise any more ( hidding the button doesn't raise events any more )
    <ext:Button ID="ButtonComboStraziAdd" runat="server" Icon="Add" Hidden="true">
        <Listeners>
              <Click Handler="console.log('change_event');" />
       </Listeners>
    </ext:Button>
    2.
    Prior to v3.0, in combobox with forceselection='true' when typing 'some text', on change event the field Value=null and the rawValue='some text' - so i could click on the RightButton (Add) attached to the combobox to save combobox.rawValue.
    Now with v3.0 on change event the field Value equals rawValue = 'some text', and before i can click the RightButton (Add), forceselection raises and alters the combo's value to initial.
    Is this the right behaviour with values/rawvalues ? Do i need to rethink my approach?
    Last edited by Daniil; Jan 30, 2015 at 2:40 PM. Reason: [CLOSED]
  2. #2
    Hi @mentor,

    I cannot reproduce the problem with this test case.

    Steps:

    1. Click the Button
    2. Click the Button that appears after the step #1
    3. The alert box appears as expected.

    Example
    <%@ Page Language="C#" %>
    
    <!DOCTYPE html>
    <html>
    <head runat="server">
        <title>Ext.NET v3 Example</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
    
            <ext:Button ID="Button1" runat="server" Icon="Add" Hidden="true">
                <Listeners>
                    <Click Handler="alert('Clicked');" />
                </Listeners>
            </ext:Button>
    
            <ext:Button runat="server" Text="Show the hidden button">
                <Listeners>
                    <Click Handler="App.Button1.show();" />
                </Listeners>
            </ext:Button>
        </form>
    </body>
    </html>
    2. Please start a new thread keeping one issue per thread. It helps a lot to have things organized on the forums. Thank you.
    Last edited by Daniil; Jan 21, 2015 at 1:08 PM.

Similar Threads

  1. Combobox with forceselection and loadRecord
    By nukarsoft in forum 2.x Help
    Replies: 0
    Last Post: Jan 07, 2013, 2:38 PM
  2. Replies: 3
    Last Post: Nov 01, 2012, 11:31 AM
  3. [CLOSED] ComboBox ForceSelection=False and Change Event
    By Steve in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: May 13, 2009, 2:48 AM
  4. [CLOSED] What does ForceSelection do in ComboBox?
    By harafeh in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 16, 2009, 1:48 PM
  5. Replies: 0
    Last Post: Dec 15, 2008, 5:39 AM

Posting Permissions