General Category > Help for ParamQuery Pro
Filter header box
paramvir:
It's supposed to work.
Please share a complete test case on stackblitz.
rebound.support:
Hi,
I want to bind dynamic header data into to dropdown in filter section. Please help or provide me example of code to binding dynamic data in filter section.
===============================================
filter: function () {
$.getJSON("controls/Nuggets/KPITargetMainInfoNew/KPITargetMainInfoNew.ashx?Action=MonthNew", function (response) {
grid.getColumn({ dataIndx: "MonthName" }).filter.options = [{ 1: "January" }, { 2: "February" }, { 3: "March" }, { 4: "April" }, { 5: "May" }, { 6: "June" }, { 7: "July" }, { 8: "August" }, { 9: "September" }, { 10: "October" }, { 11: "November" }, { 12: "December" }];
alert(response);
});
},
paramvir:
Since $.getJSON fetches data from remote serve asynchronously, it can't be used directly in filter.options callback.
Please check this example for loading filter dropdown options dynamically from remote data source:
https://paramquery.com/pro/demos/filter_remote_options
Navigation
[0] Message Index
[*] Previous page
Go to full version