ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: argo on August 21, 2014, 01:49:38 am
-
Didn't see anything in the API to customize this. I've got multiple grids on the same page and need to identify the content type specifically when there aren't any rows. For example, initialize a grid so that when there are no rows it'll display "No events were found" without modifying the other grids on the same page.
-
It's a localization string which can be modified for a single grid without affecting others on the same page by modifying the option
strNoRows
-
Thanks. Is there a list of options that can be set that aren't officially documented in the api? I ask because I looked for this option in the api documentation first, assuming it might be there. I didn't realize I could initialize the grid by passing in these options as well which is very helpful.
For anyone else, you can set the 'no rows to display' string at initialization like this:
var obj = {
// all your other grid settings
strNoRows : 'Nothing to show'
}
$("mydiv").pqGrid(obj);
I wanted to style it and had to explicitly pass in the css styles like this:
strNoRows : '<div style="font-size:18px;margin-top:20px;">Nothing to show</div>'
-
All the localization strings are there in localize folder.
Though the description of different ways they can be used is missing from docs, I would add them in the tutorial topic on localization.
http://paramquery.com/pro/tutorial#topic-locale