Skip to main content
Participant
June 7, 2012
Question

Semi-static table

  • June 7, 2012
  • 1 reply
  • 790 views

I'm using a cfgrid to make a page that consists of 28 static rooms. I need to be able to make it so that the information is deletable but not the rooms. I also still need the ability to add rooms if needed for overflow. I can't for the life of me figure out how to set it up so that the rooms aren't being deleted when we clear the whole grid. Thanks for the help.

Something like this

Room | Name | Complaint | Comment

1 | John Smith | Something | odd

I need to be able to delete the the Name, Complaint and Comment but keep the room #.  Any ideas on how to best achieve this?

This topic has been closed for replies.

1 reply

Inspiring
June 7, 2012

I dislike cfgrids and don't use them but I do similar things with html forms.  In this case I would get the user to leave the name field blank for the records to be deleted and process that information accordingly.

Adding rooms for overflow is a different matter.  It would depend on what rooms physically exist and how these rooms exist in your database.

MIGhunterAuthor
Participant
June 7, 2012

I was thinking about using a CFC like I used to in the old days.  The one thing I like about CFGRID is the ability to dynamically resize the table and hide columns.  My javascript ability isn't very good.  How do you handle that with just CF and HTML tables?

Inspiring
June 8, 2012

Hiding columns is easy - just don't display them.  Freezing row headers and certain columns is the tough part.  However, if you check out datatables.com you might find some jquery and css libraries you can use.