This is a migrated thread and some comments may be shown as answers.

Help with panelbar.

1 Answer 101 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Mattias Hermansson
Top achievements
Rank 1
Mattias Hermansson asked on 20 Aug 2013, 09:15 AM
Hello,

I'm trying to do a foreach inside of a panelbar, lika the code further down. But i keep getting an error Compiler Error Message: CS1593: Delegate 'System.Action' does not take 1 arguments. Some help would be appreciated:)

panelbar.Add().Text("Soprutter")
                .Content(
                @<div>
                    <table class="table-hover">
                        <thead>
                            <tr>
                                <th>Soprutter <a onclick="editGarbageRoute(@Model.ID)" href="#garbageModal" style="display:inline-block;margin-left:5px;" data-toggle="modal" class="tooltips small button icon green" title="Ă„ndra soprutter" ><i class="icon-pencil"></i></a>
                                </th>
                            </tr>
                        </thead>
                        <tbody>
                            @foreach(var item in Model.GarbageRoutes)
                            {
                                <tr>
                                    <td>
                                        @Html.DisplayFor(modelItem => item.Description)
                                    </td>
                                </tr>
                            }
                        </tbody>
                    </table>
                </div>);

1 Answer, 1 is accepted

Sort by
0
Mattias Hermansson
Top achievements
Rank 1
answered on 20 Aug 2013, 12:44 PM
Solved it by making a partialview instead and loaded that.
Tags
PanelBar
Asked by
Mattias Hermansson
Top achievements
Rank 1
Answers by
Mattias Hermansson
Top achievements
Rank 1
Share this question
or