Make a field editable on the grid, but not visible on the add form

QuestionsMake a field editable on the grid, but not visible on the add form
Pierre Tremblay asked 8 years ago

Hi everyone,

I have a field who represent a price. What I want is that when the user add a new line on the grid, the price would not be visible on the add form because the application generate the price with a custom add event. But once it's generated, I want the user be able to modify the value of the field price directly to the grid.

Someone knows how to do that ?

Right now the only way i had to hide it on the add form, is to make the column editable to false ( $col["editable"] = false; ). But when i do that, the user can't modify the value once it's added.



6 Answers
Abu Ghufran answered 8 years ago


This is doable using column display options.
For e.g.

$col["show"] = array("list"=>true, "add"=>false, "edit"=>true, "view"=>true);
$cols[] = $col;

This is currently available in latest build of paid version.
Free version is little outdated now and planned to be revised.

Pierre Tremblay answered 8 years ago

Hello Abu,

I had the paid version and your solution worked correctly.

Thank you very much for the quick feedback.



riccardo answered 7 years ago

I try this sintax:

$col["show"] = array("list"=>false, "add"=>true, "edit"=>true, "view"=>true);

I'd like to konw it's possible to show a col in view/edit dialog and not in grid. Is there another solution? I have a table with a lot of columns…

Abu Ghufran answered 7 years ago

It works in latest build, currently not available in free pack.

Azam answered 5 years ago

Hi, Abu Gufran!
What if I want to make a column visible on add and hide it on edit?
This doesn't work:

$col["show"] = array("list"=>true, "add"=>true, "edit"=>false, "view"=>true);
$cols[] = $col;

Azam answered 5 years ago

Sorry, it works!

Your Answer

17 + 14 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.

How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?