How at a time one row can expand in

?

前端 未结 4 1826
抹茶落季
抹茶落季 2020-12-10 17:45

In my application I have a with rowExpansion column. I have a requirement to open a single row at a time. If anyone tries to ex

4条回答
  •  猫巷女王i
    2020-12-10 18:14

    Check out the datatable.js file in Primefaces here. There is a javascript function called toggleExpansion.

    Maybe you can override this function and call the original one when no row is expanded and show a message when another row is already expanded (and not call the original one).

    Just an idea...

提交回复
热议问题