ParamQuery grid support forum

General Category => Help for ParamQuery Grid (free version) => Topic started by: jayron35 on November 20, 2019, 01:01:00 pm

Title: How to create/generate an empty GRID without data?
Post by: jayron35 on November 20, 2019, 01:01:00 pm
Hi guys,

Please help.
How to create/generate an empty GRID without data?
I want to create a GRID just like in the attachment.
Title: Re: How to create/generate an empty GRID without data?
Post by: paramvir on November 20, 2019, 01:05:02 pm
Set dataModel.data option as empty array [] and set showHeader option to false to hide the header.
Title: Re: How to create/generate an empty GRID without data?
Post by: jayron35 on November 20, 2019, 01:10:52 pm
What about if I want to create static number of rows with just one data?
Currently, if I create one data, only one field is being created. I want to create a table just like in the second attachment image.
Title: Re: How to create/generate an empty GRID without data?
Post by: paramvir on November 21, 2019, 09:02:36 am
Following data creates one row filled with data and 4 empty rows. Hope it helps.

Code: [Select]
[
{field1: val1, field2: val2,........},
 {}, {}, {}, {}
]