PHP Classes

adding a cell

Recommend this page to a friend!

      DrasticTools  >  All threads  >  adding a cell  >  (Un) Subscribe thread alerts  
Subject:adding a cell
Summary:add a new row but not edit an existing row?
Messages:5
Author:vibez
Date:2007-12-09 16:52:32
Update:2007-12-10 10:34:51
 

  1. adding a cell   Reply   Report abuse  
Picture of vibez vibez - 2007-12-09 16:52:32
Hi, it it possible to allow a user to add a new row but not edit an existing row?

I want my users to add info but not modify other's data

  2. Re: adding a cell   Reply   Report abuse  
Picture of dd dd - 2007-12-09 20:06:38 - In reply to message 1 from vibez
Yes, that's possible, use:

$options = array (
"add_allowed" => true,
"delete_allowed" => false,
"editablecols" => array ()
);

  3. Re: adding a cell   Reply   Report abuse  
Picture of vibez vibez - 2007-12-09 20:34:24 - In reply to message 2 from dd
brilliant :)

I just wondered because I thought an empty "editablecols" array would mean the edit field would be disable for the new record

  4. Re: adding a cell   Reply   Report abuse  
Picture of dd dd - 2007-12-09 21:11:00 - In reply to message 3 from vibez
yes you are right about that.
The new row won't be editable. It's just the default row, zo this may be a problem for the goal you have.

If I understand it well, you want the new row to be editable but the old row not. I'll think about a proper solution.

  5. Re: adding a cell   Reply   Report abuse  
Picture of vibez vibez - 2007-12-10 10:31:17 - In reply to message 4 from dd
Yes that is correct, I only want the new row to be editable.

Looking forward to a solution :)