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

Bug?? AutoComplete doesnot work with MaskedTextbox

1 Answer 56 Views
AutoComplete
This is a migrated thread and some comments may be shown as answers.
Swarup
Top achievements
Rank 1
Swarup asked on 20 Nov 2018, 02:46 PM

Hi Kendo Team, 
I have the same situation using in Kendo UI Masked control with AutoComplete. If I masked the auto complete control, it does not filter desire result from the autocomplete data list. Is this a bug in kendo that Maked control can not work with Autocomplete ?? Here is my code, please  provide solution if possible - 
 <div class="demo-section k-content">
        <h4><label for="Phones">Choose phone#:</label></h4>
     </div>
 <script>
        $(document).ready(function () {
            var data = [
                "7001",
                "7001.34.32",
                "7001.34.32.22",
                "7001.34.3",
                "7031.34.32"

            ];

            //create AutoComplete UI component
            $("#phones").kendoAutoComplete({
                dataSource: data,
                filter: "contains",
                placeholder: "Select Phone#..."
            });
      
            $("#phones").kendoMaskedTextBox({
                mask: "0000.00.00.00"
            });
});
    </script>

 

Thanks,

Swarup

1 Answer, 1 is accepted

Sort by
0
Veselin Tsvetanov
Telerik team
answered on 22 Nov 2018, 08:52 AM
Hello Swarup,

I am afraid that initializing two different Kendo widgets from the same DOM element would result in issues as the observed. Such scenario is not supported. According to your specific needs you will need to chose to use either the AutoComplete or the MaskedTextBox widget.

Regards,
Veselin Tsvetanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
AutoComplete
Asked by
Swarup
Top achievements
Rank 1
Answers by
Veselin Tsvetanov
Telerik team
Share this question
or