This is a migrated thread and some comments may be shown as answers.
ScaffoldColumn attribute not honoured when AutoGenerate columns
1 Answer 90 Views
This is a migrated thread and some comments may be shown as answers.
Nick
Top achievements
Rank 1
Nick asked on 08 Jun 2012, 05:31 PM
Title says it all, I have a fairly simple POCO mapped to a database using nHibernate and I'm using server binding to build my grid. I am auto generating my columns in the grid but properties on my POCO that are decorated with [ScaffoldColumn(false)] are still being shown in my grid. However I will note that they are correctly being ignored on the popups generated from making the grid editable.
Html.Kendo().Grid(Model)
    .Name("Grid")
        .Columns(columns =>
            {
                columns.AutoGenerate(true);
                columns.Command(command =>
                    {
                        command.Edit();
                    });
            })
    .ToolBar(toolbar => toolbar.Create())
    .Editable(editable => editable.Mode(GridEditMode.PopUp))

1 Answer, 1 is accepted

Sort by
0
Iliana Nikolova
Telerik team
answered on 12 Jun 2012, 09:21 AM
Hello Nick,

The described functionality is not supported in the current Beta version. The good news is that the implementation of such feature is planned for the Kendo UI for ASP.NET MVC official release.

Regards,

Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Nick
Top achievements
Rank 1
Answers by
Iliana Nikolova
Telerik team
Share this question
or