We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Update query

Hello,

This code worked for me before, but now query  and data in grid are not updating.
I use cdn https://cdn.syncfusion.com/ej2/dist/ej2.min.js. 
Any sugestions??

var filter_types = new ej.dropdowns.DropDownList({
                            dataSource: _ar,
                            fields: { text: 'name', value: 'id' },
                            placeholder: 'Types',
                            select: (item) => {
                                if (item.itemData.id != '')
                                    grid.query = new ej.data.Query().expand("Owner($select = Name,Surname, Id,Email),Orderer($select = Name, Id),EndingCustomer($select = Name, Id)").addParams("IdProcessingCompany", app.Views['ProcessingCompanies'].companySelect()).where('PeriodTypeText', 'equal', item.itemData.id);
                                else grid.query = new ej.data.Query().expand("Owner($select = Name,Surname, Id,Email),Orderer($select = Name, Id),EndingCustomer($select = Name, Id)").addParams("IdProcessingCompany", app.Views['ProcessingCompanies'].companySelect());
                                grid.refresh();
                            },
                            cssClass: "toolbar_dropdown",
                            close: () => { tooltip.close(); }
                        });

1 Reply

MF Mohammed Farook J Syncfusion Team December 10, 2018 11:01 AM UTC

 
Hi DEVW, 
 
Query: This code worked for me before, but now query  and data in grid are not updating. I use cdn https://cdn.syncfusion.com/ej2/dist/ej2.min.js.  Any sugestions?? 
 
We have validated your query and we are able to reproduce the reported problem at our end. We have already considered "Query property not working properly when dynamic property change" as a bug and logged a report for the same. The fix for the issue will be available in any of our upcoming release. 
 
Regards, 
J Mohammed Farook 


Loader.
Up arrow icon