Jump to content

adding and removing columns in a data table.


franco

Recommended Posts

On my site, I have a table that lists statistics from a mySQL database. Since the database has a lot more fields than I can display on a page, I would like to give the user a way of customizing their view of the table. I would like to allow them to add or remove any field in the database. Has anyone else done something like this? Do you know of any examples that could help get me started? I have looked at some AJAX live data grid examples but I haven't seen anything that actually allows you to add or remove columns, just reorder and sort on them.

Thanks for any help that you can provide.
Todd
Link to comment
Share on other sites

[!--quoteo(post=366455:date=Apr 19 2006, 11:21 AM:name=Dobakat)--][div class=\'quotetop\']QUOTE(Dobakat @ Apr 19 2006, 11:21 AM) [snapback]366455[/snapback][/div][div class=\'quotemain\'][!--quotec--]
You want to allow the user to choose which tables to see?
[/quote]

No, all of the data is in one mySQL tabel but has 100+ fields. I would like the user to be able to chose which 10-15 of those fields they can see of each record in the list/grid. It would work similar to pivot tables in Excel.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.