Can you ignore/skip rows?(Implementing drill-down rows)

Can you ignore/skip rows?(Implementing drill-down rows)

intint Posts: 7Questions: 0Answers: 0
edited December 2012 in General
I'm implementing drill-down rows, but can't use the technique outlined in http://www.datatables.net/blog/Drill-down_rows (using fnOpen, fnClose) as I need the drill-down rows to be in the DOM and not added/removed (ASP.NET MVC; they contain form elements against which I'm doing unobtrusive validation, and later posting back to the server).

So essentially what I have is this:

[code]

@for (var i = 0; i < Model.Count; i++)
{


some value
some value
some value





some drill down content


}

[/code]

Is there any way to have datatables keep all .drillDownRows in the table, but not try to parse them? Or another way to get this effect?

Replies

  • allanallan Posts: 63,529Questions: 1Answers: 10,473 Site admin
    Currently no - you'd need to preprocess the table before running DataTables on it. So it is possible - just not built in.

    Allan
  • intint Posts: 7Questions: 0Answers: 0
    edited December 2012
    Thanks for the response. Going to try to use fnOpen and a slightly different approach (basically store all the drill-down information in a hidden div, then pull it into the table as needed. When I need to post it back to the server for validation, I'll update all the indexes so MVC will be happy and cross my fingers).
This discussion has been closed.