Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #102421
    tullio0106@live.it
    Participant

    In my code I need to have, in a row, some columns editable and some not.

    In the doc I didn’t find any property usefull for my purpose.

    Is there any way to do such effect ?

    Is there, in api doc any page describing columns and datafields attributes (I wasn’t able to find it)?

    Tks

    #102423
    Yavor Dashev
    Participant

    Hi tullio0106@live.it,

     

    The functionality that you need is easily achievable with the allowEdit property of the columns.

    A quick code snippet on how to disable the editing of some columns:

    
    
    columns: [
    
    { label: 'First Name', dataField: 'firstName', allowEdit: false },
    <div>
    <div>{ label: 'Last Name', dataField: 'lastName', allowEdit: false },</div>
    <div>{ label: 'Product', dataField: 'productName' },</div>
    <div>{ label: 'Available', dataField: 'available', template: 'checkBox', editor: 'checkBox' },</div>
    <div>{ label: 'Quantity', dataField: 'quantity', editor: 'numberInput' },</div>
    <div>{ label: 'Unit Price', dataField: 'price', editor: 'numberInput', cellsFormat: 'c2' }</div>
    <div>
    
                ]

    Let me know if this works for you!

    Please, do not hesitate to contact us if you have any additional questions.

    Best regards,
    Yavor Dashev
    Smart UI Team
    https://www.htmlelements.com/

    </div>

    </div>
    </div>

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