Hi,
I am testing/checking infragistics capabilities and I have been working specifically with above two widgets. IgGrid remote features are working well, as well as IgCombo remote features. However, I found an error while trying to combine both widgets at the same time. IgCombo in IgGrid column edit/updating/add/delete enable:
{ name: 'Updating', enableAddRow: true, enableDeleteRow: true, editMode: 'row', columnSettings: [ { columnKey: "journal_gl_chart_id", editorType: 'combo', required: true, editorOptions: { mode: "dropdown", loadOnDemandSettings: { enabled: true, pageSize: 20 }, responseDataKey: "data", responseTotalRecCountKey: "recordCountKey", dataSource: location.protocol + "//" + location.host + '/Journal/GetCharts/', dataSourceType: 'json', HeaderTemplate: '<div class="boxed">Charts</div>', footerTemplate: '<div class="boxed">Chart Count: {0} of {3}</div>', textKey: "chart_master_code", valueKey: "chart_master_id" } }, { columnKey: "journal_gl_description", editorType: 'string', required: true }, ] }
If I set up above IgCombo as a sole combobox, It will work without problems, on the other hand if I set up IgGrid column as a IgCombo with local json. It works too.
Infragistics.Web.Mvc 5.17.2.183
Hello cristian,
After reviewing Development ID of 251110, this is the default behavior of igCombo. When the user closes the drop down clearfiltering is called in order all the items to be previewed next time when he opens the drop down.
If the user does not want to make requests to ComboData, he can set the filteringType to ‘none’. If the user wants filtering, but does not want clear filtering to be called after closing drop down, he can cancel the event filtering if it is called from dropDownClosing:
$(function () { var clearFilterCalledFromClosingDD = false; $("#type_combo").igCombo({ … filteringType: 'remote', … dropDownClosing: function (evt, ui) { clearFilterCalledFromClosingDD = true; }, filtering: function (evt, ui) { if (clearFilterCalledFromClosingDD) { clearFilterCalledFromClosingDD = false; return false; } } }); })
If you have any question with this, please let me know.
Thank you Yuki, You can close this ticket. I will keep on eye it. I found a work around, but its just a work around
Thank you for the additional information.
I have investigated your issue, and I have asked our engineering staff to examine this further. To ensure that it will receive attention, I have logged this behavior in our internal tracking system with a Development ID of 251110. This will be assigned to a developer in a future sprint to review my investigation and confirm my findings or to offer a fix, or other resolution. I’ve created a case for you CAS-194602-X9Z1K8 and will update you for the progress of this issue via the mentioned case. You could reach your case following the link below:
www.infragistics.com/.../support-activityPlease let me know if you need more information.
Hi Yuki,
I am following up on this, do you have any inputs? I stop my tests with IgCombo as a IgGrid column since most of the futures does not work out of the box. So I carry on with IgCombo and I found a really weird behaviour. Not sure why IgCombo is calling twice the datasource url when I apply a filter:
$("#type_combo").igCombo({ autoComplete: true, autoSuggestion: true, filteringType: 'remote', loadOnDemandSettings: { enabled: true, pageSize: 20 }, responseDataKey: "data", responseTotalRecCountKey: "recordCountKey", dataSource: location.protocol + "//" + location.host + '/Controller/Get?Id=' + model.id, dataSourceType: 'json', textKey: "creditor_code", valueKey: "creditor_id", filterExprUrlKey : "filter", headerTemplate: '<div class="boxed">List</div>', footerTemplate: '<div class="boxed">Count: {0} of {3}</div>', nullText: 'No Result', dropDownOrientation: "bottom", itemsRendered: function (evt, ui) { return itemsRenderedCombo(evt, ui); } }); function itemsRenderedCombo(evt, ui) { $("#type_combo").igCombo("value", journalModel.id); }
I debug this funky behaviour and I found that trying to set up the value at itemsRenderedCombo. $("#type_combo").igCombo("value", model.id); makes the IgCombo to call again the DataSourceUrl, but the second time with an empty value as a filter. I ended up returning (second call when filter is empty) the first page for On demand feature instead. So is there any way to set up IgCombo value at itemsRenderedCombo so I can show the id? if I comment out Bold line of code. Then filter works, but if I save the result as it is. id will be null instead of keeping the id which was set up before doing the filter search. Is there any way to bypass the second call? or is there another way to set up igCombo value so I can keep a consistency on id/combo value?
type a filter
Would you provide me with the configuration of igCombo, and I will check the behavior based on your option setting.
Thank you in advance.