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.
This is doable using column display options.
$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.
I had the paid version and your solution worked correctly.
Thank you very much for the quick feedback.
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…
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;
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?