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

[Solved] Grid Template inside the TabStrip using MVC3 Problem.

3 Answers 150 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
sam
Top achievements
Rank 1
sam asked on 24 Jan 2011, 01:59 AM
@(Html.Telerik().TabStrip()
            .Name("TabStrip")
            .Items(tabstrip =>
            {tabstrip.Add()
                    .Text("??   ")
                    .Content(@<text>
@(Html.Telerik().Grid(ListHelper.GetProductPictures(Model.ProductID))
                                    .Name("Grid2")
                                    .DataKeys(dataKeys =>
                                    {
                                        dataKeys.Add(m => m.PictureFile);
                                        dataKeys.Add(m => m.ProductID);
                                    })
                                    .DataBinding(dataBinding => dataBinding.Server()
                                        .Delete("DeletePicture", "Products"))
                                    .Columns(columns =>
                                    {
                                        columns.Bound(m => m.SortOrder).Title("??").Width("20%");
                                        columns.Template(
                                                @<text>
                                                    <img alt="@item.PictureFile" src="http://www.365gift.com/Products/Pictures/@(item.ProductID)/@item.PictureFile" width="80" />
                                                </text>
                                            ).Title("??").Width("60%");
                                        columns.Bound(m => m.PictureFile).Title("???").Width("10%");
                                        columns.Command(command => command.Delete()).Title("??").Width("10%");
                                    }).Render();
                                    )
                    </text>
                    );
}).SelectedIndex(0).Render();
            )


The "@<text> </text>" in the template of Grid which inside the tabstrip show the error "Inline markup blocks (@<p> content </p>) cannot be nested . only one level of inline markup is allowed ."

3 Answers, 1 is accepted

Sort by
0
David
Top achievements
Rank 1
answered on 18 Feb 2011, 07:53 AM
Hi Sam,

If you haven't already sorted this out, you should take a look at Carl Bergenhem's blog article MVC3 and Grid Hierarchy on the matter.

Cheers,
David
0
Craig
Top achievements
Rank 1
answered on 16 Jun 2011, 12:16 PM
Hi David,

The link that you provided is now dead, can you tell me where I can find the article you are looking for as I am dealing with the same problem.

Thanks,

C
0
Craig
Top achievements
Rank 1
answered on 16 Jun 2011, 12:53 PM
Hi,

I came across some documentation that handles this senario which can be found here.

Thanks,

C
Tags
Grid
Asked by
sam
Top achievements
Rank 1
Answers by
David
Top achievements
Rank 1
Craig
Top achievements
Rank 1
Share this question
or