Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > General Discussions > Removing the reorderability of the particular template column in telerik MVC Grid.
Telerik MVC Extensions are no longer supported (see this page for reference). In case you have inquiries about Kendo UI Complete for ASP.NET MVC, post them in the pertinent Kendo UI forums.

Not answered Removing the reorderability of the particular template column in telerik MVC Grid.

Feed from this thread
  • Nikhil Kashyap avatar

    Posted on Feb 21, 2011 (permalink)

    First column of my grid is a template column(i.e Check box Column).I have configured the grid to be reorderable so that user can change the column order as per the need.But I don't want the Checkbox column to be reorderable.Please suggest some solution for the above problem.

    Since the reorderability is at the grid level.I need to fix this column issue.



    Thanks
    Nikhil
    Dell inc.

  • Atanas Korchev Atanas Korchev admin's avatar

    Posted on Feb 21, 2011 (permalink)

    Hi Nikhil Kashyap,

     This is currently not supported. Column reordering is enabled globally and there is no way to disable it for a particular column.

    Regards,
    Atanas Korchev
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!

  • Tx3 avatar

    Posted on Apr 24, 2012 (permalink)

    I am facing the same problem. My grid has a custom checkbox solution on the first column and it should stay there. Is it still the case that I can't prevent reordering for certain column?

    I have tried this with no luck

    grid.onColumnReorder = function (e) {
        var column = e.column;
        var oldIndex = e.oldIndex;
        var newIndex = e.newIndex;
     
        if(oldIndex === 0) {
            e.preventDefault();
            return false;
        }
    };

    -Tatu

  • Denisse Zavala avatar

    Posted on May 24, 2012 (permalink)

    It's not and ideal fix, but I found a way to do it:

    Remove the 't-header' class of the column header you want to prevent from being reordered, add this to the grid onLoad handler
    $('#no-reorderable-col-header').removeClass('t-header');

    Then manually set #no-reorderable-col-header css to match the style defined for .t-header.

  • Tx3 avatar

    Posted on May 24, 2012 (permalink)

    Cool, I'll try that one. Thanks!

    -Tatu

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > General Discussions > Removing the reorderability of the particular template column in telerik MVC Grid.