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

Facing issue while using AutoComplete control inside div.

0 Answers 69 Views
AutoComplete
This is a migrated thread and some comments may be shown as answers.
Prashant
Top achievements
Rank 1
Prashant asked on 03 May 2012, 07:51 AM
Hi All,

I am facing one strange issue while using AutoComplete control within div.

This div I am parsing as below:
// Setup Modals
[code]
                    $('#b-add-domain').bind('click', function(event)
                    {
                        event.preventDefault();

                        var $editModalHTML = $('#add-domain-modal').html();

                        $(this).colorbox(
                        {
                            html:$editModalHTML,
                            width:'255',
                            maxHeight:'700',
                            opacity:'0.65',
                            transition:'fade',
                            onLoad: function(){
                                $('#cboxClose').remove(); // remove the close button
                            },
                            onComplete: function(){
                                // setup scripting for modal
                                $('select').kendoComboBox();

                                //$('#account_no1').kendoAutoComplete();

                                // cancel modal buttons
                                $('.cancel-modal').bind('click', function(event){
                                    event.preventDefault();
                                    $.colorbox.close();
                                });

                                alert($editModalHTML);
                            }


                        });
    [/code]                   
If I will keep my auto-complete control outside of this div then its working fine.

Please suggest solution for this.

No answers yet. Maybe you can help?

Tags
AutoComplete
Asked by
Prashant
Top achievements
Rank 1
Share this question
or