Datatable select rows and columns


I want to create a table that allow user to select a row and multiple column.

For row selection, I tried to use select: "row" and onSelectChange event.

For column selection, I tried use onHeaderClick event. However, my requirement is the column to be multiple select and should be the selected column is colored as well as row is selected.

Here my example:


  • Hello,

    The point is that selection mode can be only one (row or column), so it needs to do some hack with the selection and some events as shown in the snippet:
    Also, maybe, you can consider other options such as block or area selection.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion