Default Edit and Non editable columns

QuestionsDefault Edit and Non editable columns
Sri asked 10 years ago

Hi,

If I configure the grid to be in default Edit style, can I make some columns non-editable?

Thanks,
Sri

1 Answers
Abu Ghufran answered 10 years ago

For that column, simply set:

$col["editable"] = false;

Refer demos/editing/default-edit.php and turn check by setting it.

$col = array();
$col["title"] = "Date";
$col["name"] = "invdate";
$col["width"] = "50";
$col["editable"] = false;
$col["editoptions"] = array("size"=>20); // with default display of textbox with size 20
$cols[] = $col;

Your Answer

10 + 11 =

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?