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

Menu is closing event on close event I called e.preventDefault(true) method too

1 Answer 70 Views
Menu
This is a migrated thread and some comments may be shown as answers.
alizaidi
Top achievements
Rank 1
alizaidi asked on 10 Jan 2012, 01:58 PM
Hey Guys,

kindly help me with this problem I have KendoDropDownList in sub menu when i select item from KendoDropDownList it closes sub menu too even I called e.preventDefault() method on both Menu and KendoDropDownList.  here is the html.

 <ol id="ActionMenu">
<li>Search
 <ul style="right: 1px">
                            <li>
                                <div style="width: 600px; height: 450px" id="SearchContainer">
                                    <ol class="OL-Half">
                                           <li><span class="title">Owner</span><select id="OwnerDropDown" >
                                           
                                            </select><<li>
                                    </ol>
                               </div>
                            <li>
<ul>
<li>
</ol>

many thanks in advance

Ali Zaidi

1 Answer, 1 is accepted

Sort by
0
alizaidi
Top achievements
Rank 1
answered on 10 Jan 2012, 04:12 PM
there is a section kendo.ui.list in kendo.all.js

 /**
    * @name kendo.ui.List.Description
    *
    * @section Common class for ComboBox, DropDownList and AutoComplete widgets.
    */
if you add return false in _click function it will work fine

 _click: function(e) {
            this._accept($(e.currentTarget));
            return false;//mychange
        },

_click attached to jquery event

ta
Tags
Menu
Asked by
alizaidi
Top achievements
Rank 1
Answers by
alizaidi
Top achievements
Rank 1
Share this question
or