Inline edit certain columns

QuestionsInline edit certain columns
pierre mata asked 2 years ago

there's a way in the inline edit to show a columns in a "readonly" way??? show but not edit in line?


1 Answers
Abu Ghufran answered 2 years ago

Solution could be to have 2 columns of same field.e.g.

$g->select_command = "SELECT gender, gender as gender_readonly … ";

// Now you can make one column as readonly.
$col = array();
$col["name"] = "gender_readonly";
$col["title"] = "Gender";
$col["editable"] = false;
$cols[] = $col;

// and other editable with hidden on list
$col = array();
$col["name"] = "gender";
$col["title"] = "Gender";
$col["editable"] = true;
$col["show"]["list"] = false;
$col["show"]["add"] = true;
$col["show"]["edit"] = true;
$cols[] = $col;

Your Answer

1 + 12 =

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 / 5. Vote count:

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

Let us improve this post!