Disable column reorder for one column

1 Answer 50 Views
Grid
Stefan
Top achievements
Rank 1
Iron
Iron
Iron
Stefan asked on 21 Oct 2024, 01:14 PM

Hi support team,

 

is there a way I can prevent the reordering when using the columnReorder event?

 

I thought about using something like the following approach but had no luck.

 


    function onColumnReorder(e) {
        if (e.oldIndex < 5) {
            e.newIndex = e.oldIndex;
            e.preventDefault();
        }

 

I already found this documentation article Prevent Column Reordering - Kendo UI for jQuery Data Grid - Kendo UI for jQuery (telerik.com)

But this is seems to me like kind of a hack. The screen is flickering.

 

Regards

Sven

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 24 Oct 2024, 08:23 AM

Hello, Stefan,

Currently there's no other approach to prevent a column reordering. We have a feature request in our Feedback Portal where you can cast your vote.

Let me know if you have any further questions.

Regards,
Martin
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Grid
Asked by
Stefan
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Martin
Telerik team
Share this question
or