jQWidgets Forums

jQuery UI Widgets Forums Grid Only one column editable

This topic contains 4 replies, has 2 voices, and was last updated by  ramyabeena 12 years, 7 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • Only one column editable #10576

    ramyabeena
    Member

    In a grid view, how to make only one column as editable. any demos please

    Only one column editable #10577

    Dimitar
    Participant

    Hello ramyabeena,

    The editable column property is used to define which of the columns can be edited. Please check out the demo Edit Modes.

    Best Regards,
    Dimitar

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

    Only one column editable #10578

    ramyabeena
    Member

    Hello Dimitar,

    I dont want to check or uncheck the editable modes. I need the particular column should be edited by default. Not by enabling or disabling the checkboxes

    Only one column editable #10579

    Dimitar
    Participant

    Hi ramyabeena,

    Here is how to achieve this:

                $("#jqxgrid").jqxGrid(
    {
    width: 670,
    source: dataAdapter,
    theme: theme,
    pageable: true,
    autoheight: true,
    sortable: true,
    altrows: true,
    enabletooltips: true,
    editable: true,
    selectionmode: 'multiplecellsextended',
    columns: [
    { text: 'Product Name', datafield: 'ProductName', width: 250, editable: false },
    { text: 'Quantity per Unit', datafield: 'QuantityPerUnit', width: 150, editable: false },
    { text: 'Unit Price', datafield: 'UnitPrice', cellsalign: 'right', cellsformat: 'c2', width: 70, editable: true },
    { text: 'Units In Stock', datafield: 'UnitsInStock', cellsalign: 'right', cellsrenderer: cellsrenderer, width: 100, editable: false },
    { text: 'Discontinued', columntype: 'checkbox', datafield: 'Discontinued', width: 100, editable: false },
    ]
    });

    In this case only the column ‘Unit Price’ can be edited.

    Best Regards,
    Dimitar

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

    Only one column editable #10582

    ramyabeena
    Member

    Hello Dimitar

    Thank u very much.

    Thanks,
    Ramya

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

You must be logged in to reply to this topic.