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

16 posts, 0 answers
  1. Kenny
    Kenny avatar
    1 posts
    Member since:
    Nov 2014

    Posted 21 Nov 2014 Link to this post

    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
  2. Rosen
    Admin
    Rosen avatar
    3253 posts

    Posted 21 Nov 2014 Link to this post

    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!
     
  3. Simon
    Simon avatar
    166 posts
    Member since:
    Sep 2010

    Posted 25 Nov 2014 in reply to Rosen Link to this post

    Hello Rosen,

    Actually, the problem is the opposite.  The data is swapped but not the title.
  4. Brandon
    Brandon avatar
    5 posts
    Member since:
    Mar 2014

    Posted 25 Nov 2014 Link to this post

    When will the internal build be out because this broke all of our grids?
  5. Rosen
    Admin
    Rosen avatar
    3253 posts

    Posted 26 Nov 2014 Link to this post

    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!
     
  6. Thierry
    Thierry avatar
    4 posts
    Member since:
    Jan 2011

    Posted 08 Dec 2014 in reply to Rosen Link to this post

    I'm experiencing this bug with Kendo UI q3 2014 (November 19, 2014). Is it supposed to be fixed in this version?
  7. Brandon
    Brandon avatar
    5 posts
    Member since:
    Mar 2014

    Posted 08 Dec 2014 in reply to Thierry Link to this post

    The latest internal build fixed my issue so I am sure it will fix your issue also.
  8. Thierry
    Thierry avatar
    4 posts
    Member since:
    Jan 2011

    Posted 08 Dec 2014 in reply to Brandon Link to this post

    I downloaded, as you wrote me, the latest internal build . And it works. Thanks a lot.
  9. DerekAlfonso
    DerekAlfonso avatar
    17 posts
    Member since:
    Feb 2010

    Posted 11 May 2015 Link to this post

    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.
  10. Rosen
    Admin
    Rosen avatar
    3253 posts

    Posted 12 May 2015 Link to this post

    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!
     
  11. Charanpreet
    Charanpreet avatar
    4 posts
    Member since:
    Dec 2020

    Posted 07 Mar Link to this post

    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.

     

  12. Mihaela
    Admin
    Mihaela avatar
    39 posts

    Posted 09 Mar Link to this post

    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/.

  13. Charanpreet
    Charanpreet avatar
    4 posts
    Member since:
    Dec 2020

    Posted 10 Mar in reply to Mihaela Link to this post

    But documentation is not updated. I am referring docs 
  14. Mihaela
    Admin
    Mihaela avatar
    39 posts

    Posted 11 Mar Link to this post

    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/.

  15. Charanpreet
    Charanpreet avatar
    4 posts
    Member since:
    Dec 2020

    Posted 11 Mar in reply to Mihaela Link to this post

    Refering Handle the events of the Grid
    https://www.telerik.com/kendo-angular-ui/components/grid/how-to/persist-state/#toc-handling-grid-events
  16. Mihaela
    Admin
    Mihaela avatar
    39 posts

    Posted 12 Mar Link to this post

    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/.

Back to Top