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

ColumnMenu + Reorder bug

10 Answers 89 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mariusz
Top achievements
Rank 1
Mariusz asked on 09 Jan 2015, 02:40 PM
When one uses columnmenu to hide some columns and then changes the order of columns above mentioned get messed up (reordering of data occurs independently from headers).

I have recreated this unwanted behavior with your demos @http://demos.telerik.com/aspnet-mvc/grid/frozen-columns.

10 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 12 Jan 2015, 08:59 AM
Hi Rafal,

This is a known issue which should be already addressed. Please download the latest internal build and give it a spin.

Regards,
Rosen
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Mariusz
Top achievements
Rank 1
answered on 12 Jan 2015, 11:36 AM
I have downloaded latest internal build of Kendo UI for MVC and it fixed header/data mismatch. However columns still are not being sorted properly.

e.g. I drag 5th column after 2nd one and as result 2nd becomes 3rd, 3rd becomes 4th and 4th becomes 2nd (5th remains 5th).
0
Rosen
Telerik team
answered on 12 Jan 2015, 04:34 PM

Hello Rafal,

I'm afraid I'm not able to re-create such behavior locally, using the provided information. Please take a look at this short video which captures the behavior of the attached test page. Maybe I'm missing something obvious.

Regards,
Rosen
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Mariusz
Top achievements
Rank 1
answered on 13 Jan 2015, 11:15 AM
Maybe attachment's name from my first post mislead you - I'm not using frozen columns.

Having your answer in mind I've done some research and found out that last column with .Locked(true) property is causing the problem. If I remove the "lock" sorting is working just fine.
0
Mariusz
Top achievements
Rank 1
answered on 13 Jan 2015, 11:40 AM
Now I'm not sure what does exactly 'frozen column' mean (I thought those are ones with disabled scrolling). Irrelevant nomenclature apart, as I've mentioned before, .Locked(true) is the cause for incorrect sorting AND ONLY for preceding the frozen one columns. Columns following the locked one are being sorted properly.
0
Rosen
Telerik team
answered on 13 Jan 2015, 03:37 PM

Hello Rafal,

I'm afraid I'm still not sure how to recreate the issue locally. Therefore, could you please provide a small runnable sample (or modify the test page I have sent) and the required steps which can demonstrate the issue locally. 

Regards,
Rosen
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Mariusz
Top achievements
Rank 1
answered on 13 Jan 2015, 04:11 PM
I wasn't able to recreate my issue in your example (maybe because it uses html+js and I am using UI for MVC and razor syntax). I will try to do it later because the issue really bothers me and it just have to work.

Funny thing is if you set "locked: true" in your grid the column will move left-most and will become "locked". In my case (I set lock on last column, which contains dropdownmenu template) it remains where I initially place it (right-most), which is probably why you are not able to recreate my issue (I mentioned earlier, that only columns to the left from the locked one don't sort properly).

I am using .Locked(true) just to disable reordering of the last column.

Maybe this will help you to understand what am I dealing with, if not I'm gonna try to give you a complete (not)working example.
0
Accepted
Rosen
Telerik team
answered on 13 Jan 2015, 04:29 PM

Hello Rafal,

Could you verify that the Grid scrolling is enabled. Note that locked option can be used only when Grid is scrollable, otherwise unexpected results will occur. 

Regards,
Rosen
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Mariusz
Top achievements
Rank 1
answered on 14 Jan 2015, 10:06 AM
Finally something ;)

When I'm trying to enable scrolling I get a JS error (attached).

It was not enabled. I wasn't aware I have to enable it and to be honest I don't want it enabled. I just want a grid with all except one reorderable columns. Is there any way I can achieve that?
0
Accepted
Rosen
Telerik team
answered on 14 Jan 2015, 12:10 PM

Hello Rafal,

 

I'm afraid that reordering feature cannot be disabled on per column basis. However, you may consider the workaround shown in this forum thread.

 

Regards,
Rosen
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Mariusz
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Mariusz
Top achievements
Rank 1
Share this question
or