ParamQuery Grid
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
ParamQuery grid support forum
»
General Category
»
Help for ParamQuery Grid (free version)
»
How to create/generate an empty GRID without data?
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to create/generate an empty GRID without data? (Read 4920 times)
jayron35
Newbie
Posts: 2
How to create/generate an empty GRID without data?
«
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.
Logged
paramvir
Administrator
Hero Member
Posts: 6309
Re: How to create/generate an empty GRID without data?
«
Reply #1 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.
Logged
jayron35
Newbie
Posts: 2
Re: How to create/generate an empty GRID without data?
«
Reply #2 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.
Logged
paramvir
Administrator
Hero Member
Posts: 6309
Re: How to create/generate an empty GRID without data?
«
Reply #3 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,........},
{}, {}, {}, {}
]
Logged
Print
Pages: [
1
]
« previous
next »
ParamQuery grid support forum
»
General Category
»
Help for ParamQuery Grid (free version)
»
How to create/generate an empty GRID without data?