ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: mikep on February 27, 2020, 03:39:06 am
-
If I'm loading a grid based on search results, and there is no data returned from the search, the grid displays "undefined". Can I change the text to something like "No results available"?
-
Please include localization file from localize folder in SDK and you can modify that file to display your custom messages.
-
I've included the file, pq-localize-en.js, in my page. However, I don't see how I change it, since "undefined" is not listed anywhere in this file.
-
There is no other reason to display "undefined".
Please share a jsfiddle so that it can be checked.
-
How do I modify the file, pq-localize-en.js, to change the word "undefined" to "No search results returned"? I don't want to see "undefined" anything in the grid.
-
Default entry is strNoRows: "No rows to display." in pq-localize-en.js
Please ensure localization file is included in correct order: https://paramquery.com/pro/tutorial#topic-include
If you still see "undefined", then it means something is wrong in your code / configuration. Please share a jsfiddle so that it can be checked.
-
If I'm not getting any data back, I don't want "undefined"
https://jsfiddle.net/mq2xavcz/2/
-
Please check the result after including localization file: https://jsfiddle.net/s546L0rp/