Recent Posts

Pages: 1 ... 8 9 [10]
91
To implement a delay for your range filter and prevent the grid from refreshing instantly, you can intercept the check event within the gridOptions and wrap the filter logic in a debounce timer.

Code: [Select]
check: function(evt, ui) {
    var filterGrid = this;
    // Reference the main grid (adjust selector as needed)
    var mainGrid = $("#grid_filter").pqGrid('instance');
    // Clear existing timer to debounce
    clearTimeout(mainGrid.rangeTimer);
    mainGrid.rangeTimer = setTimeout(function() {

        var dataIndx = ui.dataIndx;
        // Get all checked values from the dropdown grid
        var checkedRows = filterGrid.Checkbox( dataIndx ).getCheckedNodes()
        var values = checkedRows.map(function(rd) {
            return rd[ dataIndx ];
        });
        // Manually trigger the remote filter on the main grid
        mainGrid.filter({                           
            rules: [{
                dataIndx,
                condition: 'range',
                value: values
            }]
        });
mainGrid.refreshHeaderFilter({dataIndx});

    }, 1000);
}
92
I have set coloumns "~multi" and "~txt" as dataType "stringi", but the dataType being sent to server in pq_filter is "string" (see below).
Column "~sel" is dataType "string" and sends "string" correctly.

Code: [Select]
{
   "mode":"AND",
   "data":[
      {"dataIndx":"~multi","dataType":"string","value":["opt2","opt3","opt4"],"condition":"range"}, // Not "stringi"
      {"dataIndx":"~sel","dataType":"string","value":"op2","condition":"equal"},
      {"dataIndx":"~txt","dataType":"string","value":"rrr","condition":"contain"}   // Not "stringi"
   ]
}
93
Bug Report / Very, very minor display bug with an empty grid
« Last post by jplevene on March 06, 2026, 04:48:25 pm »
Grid that use remote data, if there are no rows, part of the scroll bar gets hidden (see attached images).

Once the grid gets rows, all is good (see second image)

Doing remote filters, etc is fine as well, even after an empty grid has loaded

Running a "refresh" command makes it come back, but it disappears again after any of the above
94
Help for ParamQuery Pro / Set a delay before remote data load on filter selection
« Last post by jplevene on March 06, 2026, 03:40:30 am »
On my filter bar when it is "range" (like in the image attached), I want to set a slight delay to give the user time to select another option before the grid refreshes remotely, like 250ms.  How do I do this?


Code: [Select]
{
crules: [{condition:"range", value:[]}],
style:"text-align:"+dir,
selectGridObj: function(ui) {
// Change the label render
ui.obj.colModel[0].renderLabel = "Name" };
ui.obj.colModel[0].sortable = false;
},
options: [{"FIELD":"opt1", "NAME":"Option 1"}, {"FIELD":"opt2", "NAME":"Option 2"}, ...],
gridOptions: {
stripeRows: false, // No stripey rows
numberCell: {show: false}, // Hide the number column
filterModel: {header: false},// Hide search box in the dropdown
focusModel: { focusable: false, onTab:""}, // Prevent the focus box
selectionModel: {type:null, column:false} // Disable row selection
}
}
95
News / ParamQuery Pro MCP Server for AI-Powered Development
« Last post by paramvir on February 28, 2026, 10:46:18 pm »
ParamQuery Pro MCP Server



We’re excited to announce the official launch of the ParamQuery Pro Model Context Protocol (MCP) Server.

It gives AI coding assistants direct access to ParamQuery documentation, demos, API references, and examples — allowing them to generate and debug grids accurately without hallucinations.

Endpoint
Code: [Select]
https://paramquery.com/mcp



Why Use It?

  • Accurate Code Generation – AI retrieves real ParamQuery examples, options, and API references.
  • No More Hallucinated APIs – Agents use the official documentation directly.
  • Faster Grid Development – Generate configs, demos, and integrations quickly.
  • Smarter Debugging – AI can analyze your grid options and suggest correct fixes.


Available Tools

  • query_resource_index 
    Search the unified ParamQuery resource index (Guides, Demos, Options, Methods, Events) using natural language queries like 
    "remote filtering example" or "install via npm"
    Returns resource IDs and metadata.

  • get_resource_content 
    Retrieve full technical content for a resource. 
    Supports demos, guides, API docs, and large example code blocks.


Availability

Available to all licensed ParamQuery Pro users.



Quick Setup

1. Generate Your Token

  • Log in to the Forum.
  • Open your User Profile.
  • Click MCP Token to generate your Personal Access Token.
2. Configure Your MCP Client

Example configuration:

Code: [Select]
{
  "mcpServers": {
    "paramquery": {
      "url": "https://paramquery.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_TOKEN"
      }
    }
  }
}

3. Use It With Your AI Editor

Works with most MCP-enabled AI tools including:

  • Cursor
  • Claude Code
  • VS Code (MCP extensions)
  • Cline
  • Continue
  • Windsurf
  • Codex CLI
  • Gemini CLI
  • LibreChat
  • MCP Inspector



The ParamQuery MCP Server turns your AI assistant into a developer that understands the ParamQuery API, demos, and best practices — instantly.
96
Bug Report / Minor 11.1.0 visual bug (tree with no drag handles)
« Last post by jplevene on February 23, 2026, 09:21:03 pm »
Two first the vertical column divider is not aligned with the header divider.  The second is that there are small gaps in the vertical mis-aligned column divider.
See attached image.
97
Bug Report / Filter input, drop down arrow has no padding to protect it
« Last post by jplevene on February 21, 2026, 01:22:00 am »
In the filter bar drop down, if the selection is too long, the drop down arrow gets hidden because there is no padding in the input.

The input only has the generic classes "pq-grid-hd-search-field  ui-corner-all" and is missing a class like "pq-search-dropdown" so that we can apply below so that it will look like the second image:

Code: [Select]
.pq-search-dropdown {
  padding-right:1.6em;
  text-overflow: ellipsis;
}

A trick you could do is to use a <select> with none or one <option> instead and add the following to prevent the default drop down and trigger your own:

Code: [Select]
select.on("touchstart touchend mousedown", function(e){
e.preventDefault();
show_hide_dropdown()
});

When an option is selected in the the pqGrid drop down, delete the existing <select> <option>, then add a new <option> with the value as a JSON array string of the selected values, and the html as the displayed text values:

Code: [Select]
<option value="[1,4,6,9]">First, Forth, Sixth, Ninth</option>
98
Help for ParamQuery Pro / Re: Another 11.1.0 bug
« Last post by jplevene on February 20, 2026, 09:21:57 pm »
Attached is the filter issue.  I assume they are all the same bug.  My filterModel is below

{
            crules: [{condition:"range"}],
            selectGridObj: function(ui) {
               // Change the label render
               ui.obj.colModel[0].renderLabel = function(ui){ return htmlEntities(ui["rowData"]["NAME"]); };
               ui.obj.colModel[0].sortable = false;
            },
            //options: [],            // Set below
            gridOptions: {
               stripeRows: false,         // No stripey rows
               numberCell: {show: false},   // Hide the number column
               filterModel: {header: false},// Hide search box in the dropdown
               focusModel: { focusable: false, onTab:""}, // Prevent the focus box
               selectionModel: {type:null, column:false} // Disable row selection
            },
            title: function(sel, ui, column){
               var s = "";
               if(!empty(sel))
                  for(var i = 0; i < sel.length; i++) {
                     s += (s===""?"":", ") + depots_ids[ sel ];
                  }

               return s;
            }
         }
99
Help for ParamQuery Pro / Another 11.1.0 bug
« Last post by jplevene on February 20, 2026, 12:52:37 am »
I can't figure this one out, it is only minor.

I have a main grid on a page, but when I later create a new grids, even though focusModel is set to below, this new grids still show a focus box???

{"focusable":false,"onTab":""}

When I get the time I will dig in deeper to find the cause.

Using 11.0.0 with the same code the error doesn't occur

Also setting focusModel: { focusable: false } in gridOptions makes the first item always focused
100
Help for ParamQuery Pro / Re: colmodel.title in v11.1.0
« Last post by paramvir on February 17, 2026, 10:47:55 pm »
Yes, the next version will be released soon.

In the meantime, you can fix the halign issue using the following CSS:

Code: [Select]
.pq-title-span {
  flex-grow: 1;
}

.pq-align-right .pq-title-span {
    justify-content: flex-end;
}

.pq-align-center .pq-title-span {
    justify-content: center;
}

This is the same fix that will be included in the upcoming version.
Pages: 1 ... 8 9 [10]