jQWidgets Forums

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts

  • thond1st
    Participant

    Hi Yavor,

    Thank you. Will try this out.

    Kind Regards,
    Anthony


    thond1st
    Participant

    Hi Yavor,

    Thanks. Yes I am using createeditor:

    
    { text: 'Service', width: 250, datafield: 'ServiceId', displayfield: 'Service', columntype: 'combobox', createeditor: (row, value, editor) => { this.comBobox = editor.jqxComboBox({ source: this.servicesAdapter, displayMember: 'Name', valueMember: 'Id', selectedIndex: '-1', placeHolder: 'Search here..', remoteAutoComplete: 'true', search: 'search', remoteAutoCompleteDelay: '200' });
    },
    

    My problem is the sample in combobox when searching for nameStartsWith uses $ref as below when a user types.

    
    this.servicesAdapter = new jqx.dataAdapter(servicesSource, {
                formatData: (data) => {
                    if (this.$refs.myComboBox.searchString() != undefined) {
                        data.name_startsWith = this.$refs.myComboBox.searchString();
                        return data;
                    }
                },
                autoBind: true
            });
    

    Do you have any example in implementing the cobobox search an API when a user starts to type in a grid? Or how to get the searchstring of a combobox that is inside a grid as a column.

    Thanks again


    thond1st
    Participant

    Adding some more details. The use case is inside JQXGrid I am creating a column using JQXCombobox and I want to get the options for that combobox from a searchString and passing it to an API url as source location then it will return the options based on the searchString. Reason I want to do this is because the values are about 10,000. SO the only option is thorugh Search fnctionality.

    I have a combobox outside JQXGrid and the code in the first post works but I can’t make it work inside a grid becasue I can’t set Ref.

    Thanks and Regards

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