Click here to Skip to main content
15,885,985 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
We have foreach loop to iterate different reports with checkbox to show or hide, I have to add a text box to customize the name in future for particular report (text box should shown for particular report only not for all reports)
Razor
@foreach (var setting in Model.DashboardSettings)
{                                            
    <li>
        @(Html.Kendo().CheckBox()
           .Name(setting.ReportsName)
           .HtmlAttributes(new {@class = "report-name", onclick = "setDisabledDashboards();"})
           .Enable(true)
           .Checked(setting.IsEnabled)
           .Label(setting.ReportsLabelName))
    </li>
}


What I have tried:

I have tried with if condition , but none are work
Posted
Updated 21-Sep-22 23:28pm
v4
Comments
Richard Deeming 22-Sep-22 5:29am    
You haven't shown the code you've tried, so we can't tell you what's wrong with it.

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