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

Not working "Frozen column" in Kendo UI For ASP.Net MVC

1 Answer 204 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Frank
Top achievements
Rank 1
Frank asked on 29 Jun 2015, 02:08 PM

Hi,

i'm using Kendo.Mvc version 2015.1.429.440 (Q2 2015), but when I use Locked(true) to a column,

it doesn't get frozen. I'd like to know:

- what is doing wrong in my code

@(Html.Kendo().Grid(Model)
         .Name("grid")
                 .Columns(columns =>
                     {
                         columns.Bound(typeof(string), Model.Columns[0].ColumnName.ToString()).Locked(true);
                         
                         for(int p=1;  p< Model.Columns.Count-1; p++)
                         {
                             columns.Bound(typeof(string), Model.Columns[p].ColumnName.ToString())
                                 .Width(150)
                                 .Encoded(false);
                                 //.ClientTemplate("<img src='" + Url.Content(column.ColumnName.ToString()) + "' />")
                         }
                     })                   
        )

 

thanks for help in advance.

1 Answer, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 01 Jul 2015, 07:32 AM
Hello Frank,

In order to have frozen columns functionality you need to enable the scrolling of the grid. For example:
.Scrollable(s=>s.Enabled(true))

Please give it try and let me know if it helps you.

Looking forward for your reply.

Regards,
Radoslav
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Frank
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Share this question
or