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

Binding Dynamic data to Kendo UI Grid with all the Grid features

1 Answer 213 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ravi
Top achievements
Rank 1
Ravi asked on 06 Oct 2012, 05:05 PM
Hello,

I am new to Kendo and also to MVC 3. I am trying to bind the grid with Dynamic datatable (It can have 20-25 columns based on the request). Currently I am using the autogenerate to bind the grid. but the problem what I am facing is, I am unable to set the width of each column also also horizantal scroll bar is not appering.

It would be great, if anyone could suggest me better approach to bind the datatable to grid otherthan what I am doing and also the solutions to my problem.

Thanks in advance.

Regards,
Ravi

1 Answer, 1 is accepted

Sort by
0
Ravi
Top achievements
Rank 1
answered on 08 Oct 2012, 05:09 AM
Hello,

I got the solution for set the size of the columns. here is my code, I want horizontal scroll bar only for the grid but the scroll bar is appearing at the bottom of the page for the whole screen. I want only for the kendo grid. can anyone suggest how to do that ?

 .Columns(c =>
        {
            c.AutoGenerate(column =>
            {
                //customize autogenereted column's settings                                                    
                column.Width = "150px";
                if (column.Member == "CustomerID")
                    column.Visible = false;
            });
        })

Regards,
Ravi
Tags
Grid
Asked by
Ravi
Top achievements
Rank 1
Answers by
Ravi
Top achievements
Rank 1
Share this question
or