Help with panelbar.

2 posts, 0 answers
  1. Mattias Hermansson
    Mattias Hermansson avatar
    24 posts
    Member since:
    May 2010

    Posted 20 Aug 2013 Link to this post

    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>);
  2. Mattias Hermansson
    Mattias Hermansson avatar
    24 posts
    Member since:
    May 2010

    Posted 20 Aug 2013 Link to this post

    Solved it by making a partialview instead and loaded that.
  3. Kendo UI is VS 2017 Ready
Back to Top