Click here to Skip to main content
15,347,213 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have one bug where I want a table only if there is some values otherwise table is not being displayed. I have tried this line of code below but I am getting Empty header if there is no value in that table.

Scenario is:

I have 2 Model for 1st model I have selected some values so for that model table header is displayed as I want but for 2nd model I have not selected any values but also table header is displaying without any values. and for that table i am getting empty header which i don't want.

What I have tried:

                {% if {{IsNetPrice}} == false %}
                    {% endif %}
<table class="w100 footertable"><tbody><tr>                <th class="w40 tableConfigHeader tablestyleFendt"></th>                <th class="w30 tableConfigHeader tablestyleFendt textleft">{{Description}}</th><th class="w30 tableConfigHeader tablestyleFendt textright">{{Price}} ({{Symbol}}) </th></tr>          </tbody></table>
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900