Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
200
Load on Demand with igCombo
posted

Hi,

I am currently developing functionality on demand loading of data in the igcombo.
What I want is to take the written text in the control and conduct a manual POST with text and other data. But I find nothing that I notice that text entry and pressed ENTER or TAB to search.
I need an event which can detect this.
any idea?

Parents
No Data
Reply
  • 24497
    posted

    Hi Felipe,

    It is not clear what exactly you try to do. If you want to keep track on text changes in igCombo, then the easiest way to process textChanged event. Below is example:

    $('#combo1').igCombo({
       textChanged: function (evt, ui) {
          var oldText = ui.oldText;
          var text = ui.text;
          var selIndex = ui.owner.selectedIndex();
          var evtType = evt.originalEvent ? evt.originalEvent.type : null;
       },
       dataSource: ["one", "two", "three", "four"]
    });

    Next version of igCombo will have built-in load on demand functionality for remote data. In case of Mvc application or oData (netflix), application will need only enable option of igCombo.

Children