JavaScript UI Libraries & Blazor Components Suite – Smart UI Forums Data Grid Hide column menu button in one column

Tagged: , ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #103350
    Rafa Esparza
    Participant

    Hi,
    I’m trying to hide the column menu button in one column of the grid.
    Anyone know if this is posible from column description?

    
    columns = [
    {
    label: 'Código', width: 100, dataField: 'id', -> something like: menuHide:true
    },
    

    Thanks in advance

    • This topic was modified 2 years, 4 months ago by Rafa Esparza.
    • This topic was modified 2 years, 4 months ago by Rafa Esparza.
    • This topic was modified 2 years, 4 months ago by Rafa Esparza.
    #103354
    admin
    Keymaster

    Hi Rafa,

    You can use the column’s showActionButton property for that purpose.

    			columns: [
    		       {
                        label: 'First Name', dataField: 'firstName', showActionButton: false
                    },
                    { label: 'Last Name', dataField: 'lastName'},
                    { label: 'Product', dataField: 'productName' },
                    { label: 'Quantity', dataField: 'quantity', align: 'right', cellsAlign: 'right',},
                    { label: 'Unit Price', dataField: 'price', align: 'right', cellsAlign: 'right', cellsFormat: 'c2' },
                    { label: 'Total', dataField: 'total',  align: 'right', cellsAlign: 'right', cellsFormat: 'c2' }
    			]

    Best regards,
    Peter Stoev

    Smart UI Team
    https://www.htmlelements.com/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.