jQWidgets Forums

jQuery UI Widgets Forums Lists DropDownList jqxComboBox – Doesnot close when query in progress

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 10 years, 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • Adarsha
    Participant

    Hi ,
    I created a jqxComboBox. When i select each item from that combobox list, a execute a query to server to send the details of it.

    Below is my query
    $.ajax({ url: “herculestest.asp”,
    type: “GET”,
    data: { t: (new Date()).getTime(), trans: trans, msg: mesg },
    async: false,
    success: function(data) {
    res=data;
    }
    });
    return res;

    Some items in the list takes aprox:3-6 sec to complete the query. During this time, the dropdown does not close atomatically. I issued $(“#jqxlibrarylist”).jqxComboBox(‘close’) and then execute above query. still does not work.

    Can you please let me know why this jqxComboBox behaves like this?

    My requirement is when i select an item a query to server will respond with some data and i will populate that data into jqxGrid.

    Everything works fine, except the above small glitch. it looks very confusing when nothing happening on the screen and a dropdown is almmost dead during the query transaction.


    Peter Stoev
    Keymaster

    Hi Adarsha,

    I do not know why you expected the widget to close itself when you make some Ajax query on your page. It closes itself when something else gets the focus or when you click on its item. The “close” method will always close the widget’s popup.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.