You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Render.FileToString("path_to_template.html", new {
<other properties...>,
Data = dt
});
The text was updated successfully, but these errors were encountered:
trousyt
changed the title
Inverted tag with DataTable doesn't evaluate correctly
Inverted section with DataTable doesn't evaluate correctly
May 11, 2015
Hey, thanks for reporting this. It was an oversight on my part when implementing the DataTable interpolation in that it has to have an explicit way to determine if it has values.
I've added code to fix this and added a test using your example (which was well documented, thank you very much for that) and it'll in the next release which should be on Friday by the latest.
When trying to use a DataTable that has zero rows, the inverted tag doesn't evaluate correctly (i.e. not at all). Here's an example of my template:
I get simply:
My call looks like so:
The text was updated successfully, but these errors were encountered: