[CLOSED] Multiselect Click

  1. #1

    [CLOSED] Multiselect Click

    I have a piece of code that isn't working in v2.x but in v1.x works fine.

    <ext:MultiSelect ID="lstDescripcion" runat="server" SingleSelect="true">
            <Items>
                <ext:ListItem Text="Text 1" Value="1" />
                <ext:ListItem Text="Text 2" Value="2" />
            </Items>
            <Listeners>
                <Click Handler="alert('hi!');" />
            </Listeners>                    
        </ext:MultiSelect>
    Click event doesn't fire never.

    Any solution or workaround?
    Last edited by Daniil; Jul 19, 2012 at 8:47 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Please use the Change event instead.

    We will add a respective changelog item, thanks for the report.
  3. #3
    In older versions, when I click an item of multiselect I perform some operations, and clicking again you could do it another time.

    Now with change event, I can't do these operations to the same item many times because only fires the first time I select it.

    Is there any way to have the same behaviour?
    Click Event appears in listeners now, are you saying me that is deprecated and is going to dissapear?
  4. #4
    Please use the ListConfig property.

    Example
    <ext:MultiSelect runat="server">
        <Items>
            <ext:ListItem Text="Text 1" Value="1" />
            <ext:ListItem Text="Text 2" Value="2" />
        </Items>
        <ListConfig runat="server">
            <Listeners>
                <ItemClick Handler="alert(index);" />
            </Listeners>
        </ListConfig>
    </ext:MultiSelect>
    See also
    http://docs.sencha.com/ext-js/4-1/#!...cfg-listConfig
  5. #5
    Yes this works as I expected

    Thanks for all

Similar Threads

  1. Replies: 4
    Last Post: May 09, 2012, 9:24 PM
  2. Replies: 4
    Last Post: Feb 20, 2012, 11:14 AM
  3. Fire cell click on row double-click
    By RPIRES in forum 1.x Help
    Replies: 1
    Last Post: Jul 01, 2010, 8:20 PM
  4. Replies: 0
    Last Post: Mar 09, 2010, 7:28 AM
  5. MultiSelect Double Click
    By amitpareek in forum 1.x Legacy Premium Help
    Replies: 17
    Last Post: Nov 23, 2009, 2:07 PM

Tags for this Thread

Posting Permissions