Datatables: Hide data instead of Removing it

Datatables: Hide data instead of Removing it

JamaurJamaur Posts: 87Questions: 10Answers: 0

I know that this question is a long shot, but I'm gonna ask anyway. Is it possible for data to be hidden instead of being removed? (When filtering, hiding columns, ecc...)

I am using ASP.NET and am populating the rows with controls (Textboxes, DropdownLists, ecc...). Whenever the controls are removed (Ex: filtering), I can never get the latest control values from code-behind/server side. I only get the value with which the control was initialized.

Are there any possible workarounds or alternatives (if possible, without any asynchronous calls)?

Thanks.

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,473 Site admin

    As in display:none rather than being removed from the document? You could possibly modify DataTables to do that, but I suspect it would be a lot of work and it isn't something that it was designed for.

    Allan

  • JamaurJamaur Posts: 87Questions: 10Answers: 0

    Yes, I'm talking about display: none. Any other alternatives i could try?

  • allanallan Posts: 63,516Questions: 1Answers: 10,473 Site admin

    I don't actually know what you are trying to do, so I'm not sure. If you want the values from the hidden nodes, then use the API and jQuery - for example $('input', table.rows().nodes() ) to get all input nodes in the table.

    Allan

This discussion has been closed.