jQuery UI Widgets Forums Lists ComboBox jqxComboBox remotes search autocomplete

This topic contains 3 replies, has 2 voices, and was last updated by  ivailo 8 years, 10 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • jqxComboBox remotes search autocomplete #80236

    nagaveni
    Participant

    Hi Guys,

    I am using jqxComboBox remotes search,
    There I am sending search parameter as a query string to API method and returning results back to view and displaying result in the combo dropdown,
    Here the typed text is not highlighting(bold) in the drop down list items.
    I want to display the typed string as highlighting(bold) in the drop down list items.

    I request you to provide me solution for this.

    Regards,
    Nagaveni

    jqxComboBox remotes search autocomplete #80257

    ivailo
    Participant

    Hi nagaveni,

    The text is not highlighted, cause renderer callback is called.
    If you want to highlight the results you have to change the renderer.

    Here is simple example:

    renderer: function (index, label, value) {
                        var inputValue = $("#jqxcombobox input").val();
                        var item = dataAdapter.records[index];
                        if (item != null) {
                            var label = item.name.toLowerCase().replace(inputValue.toLowerCase(), "<b>" + inputValue.charAt(0).toUpperCase() + inputValue.slice(1).toLowerCase() + "</b>") + "(" + item.countryName + ", " + item.adminName1 + ")";
                            return label;
                        }
                        return "";
                    },

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

    jqxComboBox remotes search autocomplete #81923

    nagaveni
    Participant

    Hi,

    RemoteSearch is not working by doing copypaste through mouse.But it is working with keyboard.Can you provide the solution for copy paste with mouse?


    ivailo
    Participant

    Hi nagaveni,

    Unfortunately we don’t offer that kind of option.

    Best Regards,
    Ivailo Ivanov
    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.