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

[Solved] Variable columns count problem

1 Answer 104 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.
Alexander
Top achievements
Rank 1
Alexander asked on 30 Mar 2011, 12:23 PM
Hello.

As I can see, this construction doesn't work:
Html.Telerik().Grid(Model)
    .Name("Grid")
    .Columns(columns =>
                {
                    for (int i = 0; i < Model.Series.Count; i++)
                    {
                        columns.Bound(o => o.Cells[i].Value);
                    }
                }
    )
    .Render());

How can I realize this?
Or
I can bind the data using DataView or DataTable, but It seems there is no full control over the grid in this case.
For example, how to use Templates with binding through the DataView?

Thanks a lot.

1 Answer, 1 is accepted

Sort by
0
Alexander
Top achievements
Rank 1
answered on 06 Apr 2011, 04:49 PM
Can you help me please?
Tags
Grid
Asked by
Alexander
Top achievements
Rank 1
Answers by
Alexander
Top achievements
Rank 1
Share this question
or