[OPEN] [#772] TagField Listeners

  1. #1

    [OPEN] [#772] TagField Listeners

    On the following sample, when first item is selected, Select event is raised 3 times



    Raised 5 times when the second one is selected.



    If we have a third item, Select event would be raised 7 times
    <!DOCTYPE html>
    <html>
    <head id="Head1" runat="server">
    </head>
    <body>
        <ext:ResourceManager Theme="Crisp" runat="server" ScriptMode="Debug" />
        <ext:TagField Margin="10" Width="300" HideSelected="true" runat="server">
            <Items>
                <ext:Tag Text="Ext.NET" Value="1" />
                <ext:Tag Text="Bridge.NET" Value="2" />
            </Items>
            <Listeners>
                <Select Handler="window.console.log(Ext.String.format('select - {0}', new Date()));" />
            </Listeners>
        </ext:TagField>
    </body>
    </html>
    The same happens to Change event.




    <!DOCTYPE html>
    <html>
    <head id="Head1" runat="server">
    </head>
    <body>
        <ext:ResourceManager Theme="Crisp" runat="server" ScriptMode="Debug" />
        <ext:TagField Margin="10" Width="300" HideSelected="true" runat="server">
            <Items>
                <ext:Tag Text="Ext.NET" Value="1" />
                <ext:Tag Text="Bridge.NET" Value="2" />
            </Items>
            <Listeners>
                <Change Handler="window.console.log(Ext.String.format('change - {0}', new Date()));" />
            </Listeners>
        </ext:TagField>
    </body>
    </html>
    Attached Thumbnails Click image for larger version. 

Name:	tf001.png 
Views:	3 
Size:	15.4 KB 
ID:	23071   Click image for larger version. 

Name:	tf002.png 
Views:	3 
Size:	13.4 KB 
ID:	23081   Click image for larger version. 

Name:	tf003.png 
Views:	4 
Size:	13.4 KB 
ID:	23091   Click image for larger version. 

Name:	tf004.png 
Views:	5 
Size:	13.5 KB 
ID:	23101  
    Last edited by Daniil; Mar 27, 2015 at 9:15 PM. Reason: [OPEN] [#772]
  2. #2
    Hi Raphael,

    Thank you for the report! Created an Issue.
    https://github.com/extnet/Ext.NET/issues/772

    For now I can recommend setting a Buffer for the listeners.
  3. #3
    For now I can recommend setting a Buffer for the listeners.
    I am using Buffer to overcome the issue.


    Thank you Daniil.

Similar Threads

  1. Replies: 1
    Last Post: Mar 27, 2015, 9:12 PM
  2. [CLOSED] TagField's HideSelected
    By RCN in forum 3.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 25, 2015, 10:37 PM
  3. [CLOSED] TagField : CallOuts
    By matrixwebtech in forum 2.x Legacy Premium Help
    Replies: 12
    Last Post: Feb 19, 2015, 11:04 AM
  4. [CLOSED] TagField : Validate tags
    By matrixwebtech in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Dec 31, 2014, 2:53 PM
  5. [CLOSED] TagField : How to allow duplicate Tag in TagField
    By matrixwebtech in forum 2.x Legacy Premium Help
    Replies: 13
    Last Post: Dec 31, 2014, 1:51 PM

Posting Permissions