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

[Solved] Datagrid within a tabstrip

1 Answer 48 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jorik
Top achievements
Rank 1
Jorik asked on 17 May 2012, 09:37 PM
Hi guys,

I'm not sure how to solve the following problem.

I'm working on an ASP.NET MVC project and on my Razor-View there's a tabstrip-control. Within this tabstrip control there's a Grid-control (actually 2). 
They al work fine, but when I want to make a column with actions (edit, delete) there is a problem. 
On another view I have a datagrid like this:
   .Columns(columns =>
        {
            columns.Template(
                @<text>
                    @Html.ActionLink(item.Project.Name, "Delete", "Project", new { ProjectId = item.ID })
                </text>)
        .....

So i put the exact same code in my datagrid inside the tabstrip, should work I guess. But my tabstrip already has a @<text> inside, so that gives me a problem. Because I get an error, <text> inside <text> not allowed, but without the <text> my 'item.ID' isn't recognized.

Anybody tried this before and got the same problem?
Regards,
Jorik

1 Answer, 1 is accepted

Sort by
0
Jorik
Top achievements
Rank 1
answered on 21 May 2012, 09:26 AM
Tags
TabStrip
Asked by
Jorik
Top achievements
Rank 1
Answers by
Jorik
Top achievements
Rank 1
Share this question
or