Entries removed client side still exist Server Side

6 posts, 0 answers
  1. HCT-CERT
    HCT-CERT avatar
    22 posts
    Member since:
    Aug 2012

    Posted 29 Jun 2013 Link to this post

    Hi,

    I applied Version 2013 Q2, and suddenly all the forms that use AutoCompleteBox stopped working as expected.Entries deleted by the user client side (using the mouse), still exist in the Entries collection after posting back.This is now causing Database constrains exceptions which means the logic for these form need to be modified.I now have to apply the previous version until this is fixed.

    Madani
  2. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 01 Jul 2013 Link to this post

    Hello Madani,

    Indeed the issue that you are currently experiencing with the RadAutocompleteBox is a known issue of the control that has already been fixed. I would suggest that you either use the latest internal build of the RadControls (that will be uploaded this week) or wait for the Service Pack 1 where the fix will also be available for download.

    Regards,
    Kate
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Daniela
    Daniela avatar
    1 posts
    Member since:
    Jul 2013

    Posted 01 Jul 2013 Link to this post

    Hi!

    The exact same thing happened to me and i've just figured it out.

    Add the client side event OnClientEntryRemoved="entryRemoved" to your autocompletebox , and then add:

    function entryRemoved(sender, eventArgs) {
     
                    var autoCompleteBox = $find("<%= RadAutoCompleteBox1.ClientID %>");          
                    var newEntries = new Telerik.Web.UI.AutoCompleteBoxEntryCollection();
                    for (var i = 0; i < autoCompleteBox.get_entries().get_count(); i++) {
                        var entry = new Telerik.Web.UI.AutoCompleteBoxEntry();
                        entry.set_text(autoCompleteBox.get_entries().getEntry(i).get_text());                  
                        entry.set_value(autoCompleteBox.get_entries().getEntry(i).get_value());
                        newEntries.insert(0,entry);
                    }
                    autoCompleteBox.get_entries().clear();
     
                    for (var j = 0; j < newEntries.get_count(); j++) {
                        var entry1 = new Telerik.Web.UI.AutoCompleteBoxEntry();
                        entry1.set_text(newEntries.getEntry(j).get_text());
                        entry1.set_value(newEntries.getEntry(j).get_value());
                        autoCompleteBox.get_entries().add(entry1);               
                    }
                }
    It worked for me... I hope it works for you as well...
  5. HCT-CERT
    HCT-CERT avatar
    22 posts
    Member since:
    Aug 2012

    Posted 02 Jul 2013 Link to this post

    Thanks Daniela and Kate.

    Kate: can you please refer me to a developer guide on how to apply an internal build.My schedule is very tight and do not want to waste extra time.

    Thanks

    Madani
  6. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 02 Jul 2013 Link to this post

    Hello Madani,

    Once you log in to you Telerik account you can follow the steps that are demonstrated in the attached files to get the latest internal build.

    Regards,
    Kate
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  7. Newton
    Newton avatar
    1 posts
    Member since:
    Aug 2013

    Posted 12 Aug 2013 Link to this post

    Danielathanks, working perfectly... 
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017