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

Reordering columns doesn't work when there're hidden columns

15 Answers 311 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kenny
Top achievements
Rank 1
Kenny asked on 21 Nov 2014, 06:18 AM
Hi,

I am evaluating Kendo UI and blocked by a problem that the column re-ordering feature doesn't work consistently when there're hidden columns. When I drag the column title to move a column forward or backward, only the column title is swapped but the column data stay at the original place and this make the column title and data doesn't match. I observe this problem both in Chrome and Firefox. I first observed this with my implementation that some columns are set as hidden in the first place. I then observed the same problems with your online demo (http://demos.telerik.com/kendo-ui/grid/persist-state) with Firefox. In the demo page, reordering works well unless you hide a column. The last column title sometimes disappears, too. Could you help to check out if this a known problem and whether it can be fixed soon? Thank you very much.

regards
Kenny

15 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 21 Nov 2014, 09:52 AM
Hello Kenny,

Thanks for your report. We were able to observe the issue you have described and to address it. The fix will be included in the next internal build (which is available to our commercial license holders). I have also updated your telerik point as a token of gratitude for bringing this to our attention.

Regards,
Rosen
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Simon
Top achievements
Rank 1
answered on 25 Nov 2014, 02:57 PM
Hello Rosen,

Actually, the problem is the opposite.  The data is swapped but not the title.
0
Brandon
Top achievements
Rank 1
answered on 25 Nov 2014, 05:24 PM
When will the internal build be out because this broke all of our grids?
0
Rosen
Telerik team
answered on 26 Nov 2014, 08:04 AM
Hi Guys,

The fix should be already available in the latest internal build. Please download it and give it a try.

Regards,
Rosen
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Thierry
Top achievements
Rank 1
answered on 08 Dec 2014, 03:22 PM
I'm experiencing this bug with Kendo UI q3 2014 (November 19, 2014). Is it supposed to be fixed in this version?
0
Brandon
Top achievements
Rank 1
answered on 08 Dec 2014, 03:27 PM
The latest internal build fixed my issue so I am sure it will fix your issue also.
0
Thierry
Top achievements
Rank 1
answered on 08 Dec 2014, 03:55 PM
I downloaded, as you wrote me, the latest internal build . And it works. Thanks a lot.
0
DerekAlfonso
Top achievements
Rank 1
answered on 11 May 2015, 10:30 PM
Is this confirmed fixed? I used kendo.all from 2014.4.1411 and 2015.1.511 and unfortunately I am still experiencing the same issue.
0
Rosen
Telerik team
answered on 12 May 2015, 08:27 AM

Hello Derek,

Indeed, it should be fixed. Maybe, you could provide a test page (using for example dojo.telerik.com), which demonstrates the issue you are experiencing.

Regards,
Rosen
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Charanpreet
Top achievements
Rank 1
Veteran
answered on 08 Mar 2021, 02:51 AM

I am using KendoUi dynamic columns into grid using angular and found reorder did not work properly if there are hidden fields. Reorder even also gave wrong current index of field chose to reorder.

 Then I invested sometime to figure out the solution , here's is the fix:

Change a little in ColumnReorderEvent find current index of column.

public onReorder(e: any): void {
    /"

const reorderedColumn = this.grid2Settings.columnsConfig.splice(e.oldIndex, 1);

*/

 

let currentIndex:any=this.gridSettings.columnsConfig.findindex(col => col.field === e.column.field)

 

const reorderedColumn = this.grid2Settings.columnsConfig.splice(currentIndex, 1);

 this.grid2Settings.columnsConfig.splice(e.newIndex, 0, ...reorderedColumn);
    this.saveGrid2();
}

Hope it helps.

 

0
Mihaela
Telerik team
answered on 09 Mar 2021, 02:30 PM

Hi Charanpreet,

Thank you for the inclusion and for sharing your approach with our community!

This issue was reported as a bug and it has already been resolved, as it is discussed in this forum thread.

Would you please try to upgrade to the latest version and verify that the bug is fixed?

Thank you for your cooperation.

 

Regards, Mihaela Lukanova Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Charanpreet
Top achievements
Rank 1
Veteran
answered on 11 Mar 2021, 03:53 AM
But documentation is not updated. I am referring docs 
0
Mihaela
Telerik team
answered on 11 Mar 2021, 01:20 PM

Hello Charanpreet,

Would you please share the documentation/demos you refer to so that I could take the necessary actions and update it accordingly? It would be appreciated if you could share your thoughts and feedback on what would you expect to see in the respective resource.

Thank you in advance.

 

Regards, Mihaela Lukanova Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Charanpreet
Top achievements
Rank 1
Veteran
answered on 11 Mar 2021, 03:23 PM
Refering Handle the events of the Grid
https://www.telerik.com/kendo-angular-ui/components/grid/how-to/persist-state/#toc-handling-grid-events
0
Mihaela
Telerik team
answered on 12 Mar 2021, 04:39 PM

Hi Charanpreet,

Thank you for sharing the document with this example.

It will be logged in as an issue in our product documentation's backlog in order to be updated within the next release.

If you have any questions or concerns, don't hesitate to let me know.


Regards, Mihaela Lukanova Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Grid
Asked by
Kenny
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Simon
Top achievements
Rank 1
Brandon
Top achievements
Rank 1
Thierry
Top achievements
Rank 1
DerekAlfonso
Top achievements
Rank 1
Charanpreet
Top achievements
Rank 1
Veteran
Mihaela
Telerik team
Share this question
or