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

Update RadAutoCompleteBox in Javascript

0 Answers 93 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Grzegorz
Top achievements
Rank 1
Grzegorz asked on 28 Feb 2017, 11:04 PM

Hi,

My RadComboBox in aspx:

               <telerik:RadAutoCompleteBox runat="server" id="RadAutoCompleteBox" onclientrequesting="requesting"> </telerik:RadAutoCompleteBox>

I have array (50 items) in Javascript. Details item:

         - Id- this element set to value selected item;
         - Text ( Account Number + Description) - this element set to selection list in RadAutoCompleteBox;
         - Account Number - this element set to input;

I would like update RadAutoCompleteBox in function requesting in Javasctipt.

          function requesting(sender, eventArgs) {            
                        var value = sender.get_text();            
                        for (var j = 0; j < myArray.length; j++) {               
                               if (myArray[j][1].indexOf(value) > -1) {                    
                                 ????????????;                    
                               }}};

please help

No answers yet. Maybe you can help?

Tags
AutoCompleteBox
Asked by
Grzegorz
Top achievements
Rank 1
Share this question
or