jQWidgets Forums

jQuery UI Widgets Forums Grid How to disable editing of a column

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • How to disable editing of a column #10694

    marchip
    Member

    Hi

    how it’s possible to disable editing of a specific column?

     

    Thanks

    How to disable editing of a column #10702

    Dimitar
    Participant

    Hello marchip,

    To disable editing of a specific column, set the editable column property to false, e.g.:

                    columns: [
    { text: 'Product Name', datafield: 'ProductName', width: 250 },
    { text: 'Quantity per Unit', datafield: 'QuantityPerUnit', width: 150 },
    { text: 'Unit Price', datafield: 'UnitPrice', cellsalign: 'right', cellsformat: 'c2', width: 70, editable: false },
    { text: 'Units In Stock', datafield: 'UnitsInStock', cellsalign: 'right', cellsrenderer: cellsrenderer, width: 100 },
    { text: 'Discontinued', columntype: 'checkbox', datafield: 'Discontinued', width: 100 },
    ]

    Best Regards,
    Dimitar

    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.