ssossossossosso

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 8 months, 1 week ago.

  • Creator
    Topic
  • #30803

    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
  • #30804

    Mike Kudelya
    Moderator

    Hi

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

    #30805

    shumdok
    Participant

    Thank you.
    It works!

    #30806

    shumdok
    Participant

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

    #30807

    Mike Kudelya
    Moderator

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

    #30808

    shumdok
    Participant

    The problem still exists.

    #30809

    Mike Kudelya
    Moderator

    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)

You must be logged in to reply to this topic.