jQuery UI Widgets Forums Grid Deleted Column

Tagged: , ,

This topic contains 1 reply, has 2 voices, and was last updated by  Vladimir 9 years, 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Deleted Column #74815

    Rajesh
    Participant

    Hi,
    I have urgent requirement for delete column from jqxgrid on button click
    is it possible to delete column from jqxgrid on button click we want to delete not hide column .

    Note: i want to remove column not hide.

    Please reply ASAP..

    Deleted Column #74819

    Vladimir
    Participant

    Hello Rajesh,

    What you can do is the following, you can supply the grid with a new array with the reduced amount of columns and refresh it.
    Example:

    var newColumns = [    { text: 'Foo', datafield: 'foo' },
                          { text: 'Bar', datafield: 'bar' }
                     ]
    $("#jqxgrid").jqxGrid({columns: newColumns});
    $("#jqxgrid").jqxGrid('render');
    

    Here is an example with a button removing the first column:
    https://www.jseditor.io/?key=delete-column

    Best Regards,
    Vladimir

    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.