[CLOSED] Ext.Net MVC - MultiSelect Click or Select Event

  1. #1

    [CLOSED] Ext.Net MVC - MultiSelect Click or Select Event

    With reference to this example, i want to do some calculation on click/selection of an item in the Multiselect.

    http://mvc.ext.net/#/Form_MultiSelect/Overview/

    Please suggest which event is available for this...

    Thanks,
    Rajiv Dutt
    Last edited by Daniil; Dec 23, 2013 at 4:01 AM. Reason: [CLOSED]
  2. #2
    Hi @RajivDutt,

    Please use a MultiSelect's Change event.
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi @RajivDutt,

    Please use a MultiSelect's Change event.
    When does the change event fire, it does not fire on click or selection of an item?
    I am using version 2.3, it seems 2.2 had the click event... is it deprecated?

    Thanks
    Rajiv Dutt
  4. #4
    It does appear the Click and DblClick events (Listeners + DirectEvent) were removed from MultiSelect between v2.2.0 and v2.3.0.

    Change occurred in Svn revision #5155

    Here's the comment left by Vladimir on the commit:

    [UPDATE] Click and DblClick events are removed for MultiSelect, need to use events from ListConfig
    I would consider this a Breaking Change, although at the moment I do not have the exact reason why this change was made.

    I am are investigating.
    Geoffrey McGill
    Founder
  5. #5
    Here's a quick sample demonstrating configuring an ItemClick Listener in WebForms markup. The same properties and events are available in both WebForms and MVC Razor.

    Example

    <ext:MultiSelect runat="server">
        <Items>
            <ext:ListItem Text="Item 1" Value="1" />
            <ext:ListItem Text="Item 2" Value="2" />
        </Items>
        <ListConfig>
            <Listeners>
                <ItemClick Handler="alert(arguments);" />
            </Listeners>
        </ListConfig>
    </ext:MultiSelect>
    Geoffrey McGill
    Founder
  6. #6
    It is a breaking change between v1.x and v2.0. Just a MultiSelect's Click and DblClick events stopped working because of redesigning inside the MultiSelect control, but we discovered it only in v2.2. As far as I can remember due to a member's report in the forums.

    I can add the following item to BREAKING_CHANGES.txt (between v1 and v2.0).

    185. The MultiSelect's Click and DblClick events have been removed. Please use the ItemClick and ItemDblClick events of its ListConfig.

    Example

    // Old
         <ext:MultiSelect runat="server">
             <Listeners>
                 <Click Handler="alert('Click');" />
                 <DblClick Handler="alert('DblClick');" />
             </Listeners>
         </ext:MultiSelect>
    // New
         <ext:MultiSelect runat="server">
             <ListConfig>
                 <Listeners>
                     <ItemClick Handler="alert('ItemClick');" />
                     <ItemDblClick Handler="alert('ItemDblClick');" />
                 </Listeners>
             </ListConfig>
         </ext:MultiSelect>
  7. #7
    Quote Originally Posted by Daniil View Post
    It is a breaking change between v1.x and v2.0. Just a MultiSelect's Click and DblClick events stopped working because of redesigning inside the MultiSelect control, but we discovered it only in v2.2. As far as I can remember due to a member's report in the forums.

    I can add the following item to BREAKING_CHANGES.txt (between v1 and v2.0).

    That's funny you had some issue in v1.x but you discovered in v. 2.2 and released the patch in v2.3. So its a breaking change for 1.x to 2.2.

    Not breaking change for 2.2 to 2.3. ha ha ha

    Regards,
    Rajiv Dutt
  8. #8
    Just for clarifying:
    Quote Originally Posted by RajivDutt View Post
    you had some issue in v1.x
    There is no issue regarding it in v1.x. The Click and DblClick events should be working well there. They stopped working in v2.0 and were removed in v2.3.

Similar Threads

  1. Select Gridpanel Items on a button click event
    By nagamalli in forum 2.x Help
    Replies: 5
    Last Post: Jul 26, 2013, 11:46 AM
  2. Multiselect Click Event is not Firing
    By rishu in forum 2.x Help
    Replies: 0
    Last Post: Jun 05, 2013, 6:45 AM
  3. Replies: 2
    Last Post: Feb 16, 2011, 8:36 AM
  4. Replies: 0
    Last Post: Mar 09, 2010, 7:28 AM
  5. [CLOSED] row select and cell click event
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 31, 2009, 9:16 AM

Tags for this Thread

Posting Permissions