[FIXED] [#1581] [4.6.0] TagField: addTags/addItems Error occurs

  1. #1

    [FIXED] [#1581] [4.6.0] TagField: addTags/addItems Error occurs

    Hi Everyone,

    I have a tagfield like
    <ext:TagField runat="server" ID="TFRecipient" TypeAhead="true" HideSelected="true" FieldLabel="An" Width="650" AllowBlank="false" Padding="5" IndicatorIcon="Help" IndicatorTip="Mehrere E-Mail-Empfänger durch Komma oder Leerzeichen getrennt eingeben">                          
        <Tags></Tags>
        <Items></Items>
    </ext:TagField>
    I want to add the tags/items on the client site like this way

    $.get(
    "../api/eMailContact",
           function (data) {
                data.forEach(function (contact) {
                App.TFRecipient.addItem(contact.Name + ' (' + contact.EMailAddress + ')', contact.Id);                       
           });
    });
    The tags/items should not be selected.
    If I now select one tag/item or do a click on the arrow down to see all my added items I get the following error:

    ext.axd?v=20018:142 Uncaught TypeError: this.createFilterFn is not a function
    at g.onTypeAhead (ext.axd?v=20018:142)
    at c (ext.axd?v=20018:19)
    at ext.axd?v=20018:19
    at ext.axd?v=20018:19
    Maybe I add the tags/items the wrong way, or I miss a setting. Do you have any suggestions?

    Thanks in advance!
    Last edited by fabricio.murta; Jun 15, 2018 at 5:48 AM.
  2. #2
    Hello @stupp,

    The TypeAhead setting is conflicting with HideSelected. If you turn either off, the problem will go away.

    We've logged this issue after #1581 in our bug tracking list at github. We'll post an update here as soon as the issue is fixed in Ext.NET sources.

    I hope this helps!
    Fabrício Murta
    Developer & Support Expert
  3. #3
    Hi @fabricio.murta,

    Thanks! That removes the error, but now I'm getting an other error. I removed the "hideSelected"from the code above.
    The new error is
    ext.axd?v=20018:19 Uncaught TypeError: Cannot read property 'internalId' of undefined
    at E.updateIndexes (ext.axd?v=20018:19)
    at E.onAdd (ext.axd?v=20018:19)
    at E.fire (ext.axd?v=20018:19)
    at E.doFireEvent (ext.axd?v=20018:19)
    at E.a.doFireEvent (ext.axd?v=20018:19)
    at E.fireEventArgs (ext.axd?v=20018:19)
    at E.fireEvent (ext.axd?v=20018:19)
    at E.onCollectionAddItems (ext.axd?v=20018:19)
    at E.onCollectionAdd (ext.axd?v=20018:19)
    at E.notify (ext.axd?v=20018:19)
    It occures if I do the following:
    • Select one entry from the items I added to the tagfield on clientside
    • Enter an e-mail address that has not been added on the client side
    • press the enter key to confirm


    I recognized that something here is going wrong :
    <input type="hidden" name="_TFRecipient_state" id="ext-element-8" value="">
    If I enter an entry which is not an item, the items I selected before or entered before are removed.

    I made some screenshots:
    Before select on entry
    Click image for larger version. 

Name:	BeforeSelectOneFromStore.PNG 
Views:	21 
Size:	45.2 KB 
ID:	25129
    after select one entry
    Click image for larger version. 

Name:	AfterSelectOneFromStore.PNG 
Views:	28 
Size:	44.7 KB 
ID:	25131
    after entering an entry, which is not an item
    Click image for larger version. 

Name:	AfterEnterOneNotInStore.PNG 
Views:	22 
Size:	46.2 KB 
ID:	25130

    Thanks in advance!
  4. #4
    Hello @stupp!

    Would you be as kind as to create a new forum thread to discuss about this issue on the component? I understand this is the same component, but the issue being from a different nature (current, just mouse expand dropdown and mouse over; new, requires entering data), it is very likely the fix will not be related, and tracking both issues here will potentially make it very confuse at some point.

    Thanks in advance!

    EDIT: I couldn't reproduce the scenario you described, so maybe you'd want to provide a test case following our forum guidelines when you create the new topic.
    Last edited by fabricio.murta; Mar 21, 2018 at 1:18 PM.

Similar Threads

  1. [OPEN] [#772] TagField Listeners
    By RCN in forum Bugs
    Replies: 2
    Last Post: Mar 27, 2015, 9:36 PM
  2. Replies: 1
    Last Post: Mar 27, 2015, 9:12 PM
  3. Replies: 2
    Last Post: Dec 21, 2014, 10:38 AM
  4. [CLOSED] This error occurs sometimes.
    By zendy in forum 2.x Legacy Premium Help
    Replies: 12
    Last Post: Jul 23, 2013, 3:35 AM
  5. In vs 2008, Download function error occurs
    By helpme in forum 1.x Help
    Replies: 1
    Last Post: Dec 30, 2009, 6:13 AM

Posting Permissions