EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: wolfnbasti on May 07, 2014, 10:43:10 PM



Title: Create column titles from database values
Post by: wolfnbasti on May 07, 2014, 10:43:10 PM
I want to create column titles from the values returned from my database. Right now a have a single column similar to this:

Attributes
=======
First Name
Last Name
Address
Phone

I'd like to have those values appear as the column titles and thus the values beneath those titles be populated with member data.

First Name | Last Name | Address | Phone

The idea would be if I enter a new attribute, for example "Pet Name", in the database a new empty column would appear entitled "Pet Name" .

First Name | Last Name | Address | Phone | Pet Name

Do you have any ideas on how I might do this?