jQWidgets Forums
Forum Replies Created
-
Author
-
April 4, 2021 at 2:33 am in reply to: Get searchString of combobox inside grid Get searchString of combobox inside grid #115018
Hi Yavor,
Thank you. Will try this out.
Kind Regards,
AnthonyMarch 27, 2021 at 4:56 am in reply to: Get searchString of combobox inside grid Get searchString of combobox inside grid #114971Hi 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
March 23, 2021 at 8:32 am in reply to: Get searchString of combobox inside grid Get searchString of combobox inside grid #114933Adding 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
-
AuthorPosts