Premium forums

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

  • 10 Jan 2012 (Link to this post)

    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
  • 10 Jan 2012 (Link to this post)

    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

Read FAQ or see Kendo UI in action!

Launch Demos