jQWidgets Forums

jQuery UI Widgets Forums Grid Grid

Tagged: 

This topic contains 7 replies, has 3 voices, and was last updated by  alexisdcarvajaln 5 years, 2 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Grid Posts
  • Grid #106084

    angulardev19
    Participant

    Hi,

    In my grid, I used [selectionmode]=”‘checkbox'” and I want to disable some checkbox based on condition. Let me know as soon as possible.

    Regards,

    Grid #106086

    Martin
    Participant

    Hello angulardev19,

    You can select the checkboxes after the grid is rendered and disable the ones you need.

    Please, take a look at the following Example of how the first 3 rows selection is disabled.

    Best Regards,
    Martin

    jQWidgets Team
    https://www.jqwidgets.com/

    Grid #106087

    angulardev19
    Participant

    Hi,

    There is an error in the code like ‘$’.

    Grid #106088

    angulardev19
    Participant

    Hi,

    Not worked for me.

    Grid #106109

    Martin
    Participant

    Hello angulardev19,

    You could use declare var $; after the component’s imports to disable it.

    I have updated the Example.

    Best Regards,
    Martin

    jQWidgets Team
    https://www.jqwidgets.com/

    Grid #107598

    alexisdcarvajaln
    Participant

    Hello, I have a grid where one of its columns is a checkbox type, all columns have their editing disabled except the checkbox column, I would like to know how can I enable a cell in the row when checking or unchecking the checkbox?

    Grid #107616

    Martin
    Participant

    Hello alexisdcarvajaln,

    You should set the editable property of the column, which cells you want to be able to edit, to ‘true’
    and use the cellbeginedit callback to check if the checkbox on this row is checked and return ‘false’ if it is not, to disable the editing.

    Here is an Example. Here you can edit the First Name cell only if the checkbox is checked.

    Best Regards,
    Martin

    jQWidgets Team
    https://www.jqwidgets.com/

    Grid #107620

    alexisdcarvajaln
    Participant

    Excellent, it was what I was looking for, thank you very much.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.