November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
Sorry Alexander, missed your question here. Yes, ther is a fix for this. I ended up overriding the fetchData method in postCreate. I have not changed which columns to render though.
postCreate: function () {
this.contentQuery.fetchData = this.fetchData;
this._reloadQuery();
},
fetchData: function () {
this.grid.set("queryOptions", {
ignore: ["query"],
sort: [{
attribute: "name",
descending: false
}]
});
var queryParameters = this.queryParameters || {};
queryParameters.query = this.queryName;
this.grid.set("query", queryParameters);
},
_queryTextChanged: function (value) {
this._reloadQuery();
},
_reloadQuery: function () {
this.contentQuery.set("queryParameters", { q: this.queryText.value });
this.contentQuery.set("queryName", this.queryName);
}
Hope this helps.
Hi,
How can I change what to sort on and which columns to render in my component? Default sorting is name descending and name and status columns are rendered.
I've tried to set the queryOptions from my component, but with no luck. My grid's attach point is contentQuery.
One way that seems to work is to inherit from the grid and create my own, but that seems unnecessary?