This is a migrated thread and some comments may be shown as answers.

Entries removed client side still exist Server Side

5 Answers 115 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
HCT-CERT
Top achievements
Rank 1
HCT-CERT asked on 29 Jun 2013, 12:54 PM
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

5 Answers, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 01 Jul 2013, 10:30 AM
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.
0
Daniela
Top achievements
Rank 1
answered on 01 Jul 2013, 02:55 PM
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...
0
HCT-CERT
Top achievements
Rank 1
answered on 02 Jul 2013, 01:04 PM
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
0
Kate
Telerik team
answered on 02 Jul 2013, 03:32 PM
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.
0
Newton
Top achievements
Rank 1
answered on 12 Aug 2013, 08:19 PM
Danielathanks, working perfectly... 
Tags
AutoCompleteBox
Asked by
HCT-CERT
Top achievements
Rank 1
Answers by
Kate
Telerik team
Daniela
Top achievements
Rank 1
HCT-CERT
Top achievements
Rank 1
Newton
Top achievements
Rank 1
Share this question
or