jQWidgets Forums

jQuery UI Widgets Forums Angular How to add default checkbox column in jqxTreeGrid

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Martin 6 years, 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • ErVishalM
    Participant

    Here is my columns- In this when i click on third column for editing then it shows checkbox but i want by default checkbox. Please can somebody look into it.

    columns: any[] = [
        { text: 'Name', dataField: 'AssetClassName', align: 'center', width: '70%' },
        { text: 'Code', dataField: 'AssetClassCode', align: 'right', cellsAlign: 'right', width: '20%' },
        {
          text: 'Inactive', dataField: 'Inactive', filtertype: 'checkedlist', align: 'center', cellsAlign: 'center', width: '10%'
          , columnType: 'template',
          createEditor: (row, cellvalue, editor, cellText, width, height) => {
            // construct the editor.
            editor.jqxCheckBox({ checked: false, hasThreeStates: false});
          },
          initEditor: (row, cellvalue, editor, celltext, width, height) => {
            // set the editor's current value. The callback is called each time the editor is displayed.
            editor.jqxCheckBox('checked', cellvalue);
          },
          getEditorValue: (row, cellvalue, editor) => {
            // return the editor's value.
            return editor.val();
          }
        }
    ];

    Martin
    Participant

    Hello ErVishalM,

    This topic is duplicated.
    Please, refer to This One.

    Best Regards,
    Martin

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

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

You must be logged in to reply to this topic.