Inline edit certain columns

QuestionsInline edit certain columns
pierre mata asked 7 years ago

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

thanks

1 Answers
Abu Ghufran answered 7 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

11 + 20 =

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?