Default Edit and Non editable columns

QuestionsDefault Edit and Non editable columns
Sri asked 5 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 5 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

3 + 0 =

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!