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

2 posts, 0 answers
  1. Frank
    Frank avatar
    6 posts
    Member since:
    Jun 2010

    Posted 29 Jun 2015 Link to this post

    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.

  2. Radoslav
    Admin
    Radoslav avatar
    1566 posts

    Posted 01 Jul 2015 Link to this post

    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
Back to Top