Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To initialize a grid dynamically use the gd.query and gd.query.ds properties. 

Child pages
sorttitle
excerptTypesimple

Note

If a grid contains static and dynamic initialization properties, both will be used to set up initial data.

For example,  when the grid configuration contains properties as below, it will be initialized with all the employees aged 25 or younger, and the 2 static entries (Brad Pitt and Angelina Jolie).

Code Block
gd.columns = firstname, lastname
gd.query = select firstname, lastname from employees where age < 26
gd.query.ds= employeedb
gd.query.row1 = Brad, Pitt
gd.query.row2 = Angelina, Jolie

...