OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform OroPlatform – How do I? Questions Hide checkbox in datagrid

This topic contains 6 replies, has 2 voices, and was last updated by  Mike Kudelya 6 years, 10 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #36458

    shumdok
    Participant

    Hi,
    I have a column in datagrid with boolean type and editable: true option. How I can hide the checkbox if the value is true? I tried to use twig template, but after that, I need to double click on the checkbox to make it check.

    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Author
    Replies
  • #36459

    Mike Kudelya
    Participant

    Hi

    As workaround you can add the following code to boolean-cell.js:

    #36460

    shumdok
    Participant

    Thank you.
    It works!

    #36461

    shumdok
    Participant

    Sorry, I was wrong.
    When I click on a row or column, the checkbox appears again.

    #36462

    Mike Kudelya
    Participant

    Try to set analogical IF condition at the start of onRowClicked function.

    #36463

    shumdok
    Participant

    The problem still exists.

    #36464

    Mike Kudelya
    Participant

    Here is my datagrid without checkboxes on Enable column:

    Did you run these commands after code modification?

Viewing 6 replies - 1 through 6 (of 6 total)

The forum ‘OroPlatform – How do I? Questions’ is closed to new topics and replies.

Back to top