Page 1 of 1

row_rendered remove checkbox for multi-delete/multi-update

Posted: Thu Dec 08, 2022 1:23 pm
by konfuzion

Is it possible to remove the checkbox for a certain row based on condition in list page for multi-delete/multi-update?

For example:

ROW_RENDERED:

if ($this->myfield->CurrentValue == 0) thisCheckboxVisible = false;

Re: row_rendered remove checkbox for multi-delete/multi-update

Posted: Thu Dec 08, 2022 1:38 pm
by mobhar

Since Checkbox control in List Page is part of ListOptions object, then you should use ListOptions_Rendered server event.


Re: row_rendered remove checkbox for multi-delete/multi-update

Posted: Thu Dec 08, 2022 5:03 pm
by konfuzion

Tks, working

if ($this->myField1->CurrentValue == 0) $this->ListOptions["checkbox"]->Body = NULL;